From be50e60e61a3ba0d47425dc1412afbf15a5e1855 Mon Sep 17 00:00:00 2001 From: willipink Date: Sun, 17 May 2020 18:48:04 +0000 Subject: [PATCH 1/3] #3 exclude production static files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index ab5b39c..5a0a390 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ Pipfile.lock **/work_data/* **/__pycache__/* *.sqlite +coinmanager/static/* From bb32b99be2204951ba642ae19496abbd64ca46f1 Mon Sep 17 00:00:00 2001 From: willipink Date: Sun, 17 May 2020 18:48:47 +0000 Subject: [PATCH 2/3] add update script maybe as future delploy hook --- update | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 update diff --git a/update b/update new file mode 100755 index 0000000..c58c8aa --- /dev/null +++ b/update @@ -0,0 +1,11 @@ +#!/bin/bash + +echo "cloning ..." +#git pull origin master + +echo "collecting static files ..." +cd /home/willipink/coinmanager/coinmanager +sudo -u willipink /home/willipink/.local/bin/pipenv run manage.py collectstatic --settings coinmanager.settings_prod + +echo "restarting apache ..." +#systemctl restart apache2 From af98f5abbf170be9d2ce90f5fcdcbffa4b9edec6 Mon Sep 17 00:00:00 2001 From: willipink Date: Sun, 17 May 2020 19:06:11 +0000 Subject: [PATCH 3/3] use proper permissions --- coinmanager/db.sqlite3 | Bin 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 coinmanager/db.sqlite3 diff --git a/coinmanager/db.sqlite3 b/coinmanager/db.sqlite3 old mode 100644 new mode 100755