Skip to content

Commit

Permalink
try to fix supervisor and overall services settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yarray committed May 11, 2015
1 parent fef15ac commit 9756bf1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion avipost/avipost/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def get_env_variable(var_name):
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'autofixture',
'postcards',
'rest_framework',
)
Expand Down
2 changes: 2 additions & 0 deletions avipost/avipost/settings/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

ALLOWED_HOSTS = ['localhost', '127.0.0.1']

INSTALLED_APPS += ('autofixture',)

DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
Expand Down
8 changes: 6 additions & 2 deletions deployment/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
nodaemon = true

[program:nginx]
command = /usr/sbin/nginx
command = /usr/sbin/nginx -g 'daemon off;'
startsecs = 5
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0

[program:app-gunicorn]
command = /usr/local/bin/gunicorn avipost.wsgi:application --bind 127.0.0.1:8000 --env DJANGO_SETTINGS_MODULE=avipost.settings.ci --chdir /usr/src/app/avipost
command = /usr/local/bin/gunicorn avipost.wsgi:application --env DJANGO_SETTINGS_MODULE=avipost.settings.ci --chdir /usr/src/app/avipost
startsecs = 5
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
1 change: 1 addition & 0 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ psycopg2==2.6
requests==2.6.0
wsgiref==0.1.2
Unipath==1.1
django-autofixture==0.10.0

0 comments on commit 9756bf1

Please sign in to comment.