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/* 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() 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