From 5b40d4dcab5d6df6049455b2f3fc628449e72246 Mon Sep 17 00:00:00 2001 From: willipink Date: Tue, 19 May 2020 07:50:08 +0000 Subject: [PATCH 1/3] fix sqlite db ending --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5a0a390..87bae71 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,5 @@ Pipfile.lock **/work_data/* **/__pycache__/* -*.sqlite +*.sqlite3 coinmanager/static/* From f8803b18e76816f0d52abb473a39dc49e539ffa5 Mon Sep 17 00:00:00 2001 From: willipink Date: Tue, 19 May 2020 07:50:39 +0000 Subject: [PATCH 2/3] fix update script --- update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update b/update index c58c8aa..92693f5 100755 --- a/update +++ b/update @@ -1,11 +1,11 @@ #!/bin/bash echo "cloning ..." -#git pull origin master +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 +pipenv run python manage.py collectstatic --settings coinmanager.production_settings --no-input echo "restarting apache ..." -#systemctl restart apache2 +sudo systemctl restart apache2 From 2cfeefcdf316bb20b238ca2cb7afd99158d2bfd8 Mon Sep 17 00:00:00 2001 From: willipink Date: Tue, 19 May 2020 07:52:43 +0000 Subject: [PATCH 3/3] rename settings_prod to production_settings --- .../coinmanager/{settings_prod.py => production_settings.py} | 0 coinmanager/coinmanager/wsgi.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename coinmanager/coinmanager/{settings_prod.py => production_settings.py} (100%) diff --git a/coinmanager/coinmanager/settings_prod.py b/coinmanager/coinmanager/production_settings.py similarity index 100% rename from coinmanager/coinmanager/settings_prod.py rename to coinmanager/coinmanager/production_settings.py diff --git a/coinmanager/coinmanager/wsgi.py b/coinmanager/coinmanager/wsgi.py index c695a7d..61eade3 100644 --- a/coinmanager/coinmanager/wsgi.py +++ b/coinmanager/coinmanager/wsgi.py @@ -11,6 +11,6 @@ import os from django.core.wsgi import get_wsgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'coinmanager.settings_prod') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'coinmanager.production_settings') application = get_wsgi_application()