Setting ENV to live and read config on non-dev environments from a file.

This commit is contained in:
Martyn Inglis
2015-12-07 11:30:29 +00:00
parent 4bb25dfdb1
commit 66537fca30
4 changed files with 9 additions and 6 deletions

View File

@@ -1,4 +0,0 @@
#!/bin/bash
echo "Starting application"
python /home/ubuntu/notifications-admin/app.py runserver &

View File

@@ -1,5 +1,6 @@
#!/bin/bash
echo "Starting application"
export NOTIFICATIONS_ADMIN_ENVIRONMENT='live'
cd ~/notifications-admin/;
sudo service notifications-admin start