From 5c09cf38b102da1ff74e82abf70684ecfaa55129 Mon Sep 17 00:00:00 2001 From: Matthew Scragg Date: Thu, 16 Jan 2014 16:22:00 -0600 Subject: [PATCH] config change --- realms/config/__init__.py | 5 ++++- srv/salt/supervisor/supervisord.conf | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/realms/config/__init__.py b/realms/config/__init__.py index 5190452..671eecc 100644 --- a/realms/config/__init__.py +++ b/realms/config/__init__.py @@ -2,7 +2,10 @@ import socket HOSTNAME = socket.gethostname() -ENV = 'DEV' +if HOSTNAME.startswith('lsn-'): + ENV = 'PROD' +else: + ENV = 'DEV' SQLALCHEMY_DATABASE_URI = 'postgresql://deploy:dbpassword@localhost:5432/realms' diff --git a/srv/salt/supervisor/supervisord.conf b/srv/salt/supervisor/supervisord.conf index 86e017f..215ee1e 100644 --- a/srv/salt/supervisor/supervisord.conf +++ b/srv/salt/supervisor/supervisord.conf @@ -1,2 +1,2 @@ [program:realms] -command=/home/deploy/virtualenvs/realms/bin/python /home/deploy/realms/app.py \ No newline at end of file +command=/home/deploy/virtualenvs/realms/bin/python /home/deploy/realms/manage.py \ No newline at end of file