move environment variable to settings file
This commit is contained in:
parent
2700e366f2
commit
29cdeef316
2
run.sh
2
run.sh
|
@ -1,6 +1,4 @@
|
||||||
export DJANGO_SETTINGS_MODULE=sensors.settings.production
|
export DJANGO_SETTINGS_MODULE=sensors.settings.production
|
||||||
export DJANGO_DEBUG=False
|
|
||||||
export DJANGO_SECRET_KEY=foo
|
|
||||||
./manage.py migrate
|
./manage.py migrate
|
||||||
./collector.sh &
|
./collector.sh &
|
||||||
gunicorn sensors.wsgi:application --bind 0.0.0.0:8000 --workers 4
|
gunicorn sensors.wsgi:application --bind 0.0.0.0:8000 --workers 4
|
||||||
|
|
|
@ -7,6 +7,7 @@ ALLOWED_HOSTS = [
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY = 'development_key'
|
SECRET_KEY = 'development_key'
|
||||||
|
DEBUG = False
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
|
|
Loading…
Reference in New Issue