From: bobcall Date: Mon, 15 Jul 2013 19:33:37 +0000 (-0400) Subject: Working supervisord configs + celeryd X-Git-Tag: release-20150131~386^2~104^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=896e599ef427dba3b4ec612973a09ddd22ce2670;p=oweals%2Fkarmaworld.git Working supervisord configs + celeryd --- diff --git a/confs/prod/static_s3.py b/confs/prod/static_s3.py new file mode 100644 index 0000000..cb7cb20 --- /dev/null +++ b/confs/prod/static_s3.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +# -*- coding:utf8 -*- +# Copyright (C) 2012 FinalsClub Foundation +""" Dummy S3 bucket conf. file (for pushing static files """ + +DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage' +AWS_ACCESS_KEY_ID = 'access_id' +AWS_SECRET_ACCESS_KEY = 'access_key' +AWS_STORAGE_BUCKET_NAME = 'bucket' +S3_URL = 'http://%s.s3.amazonaws.com/' % AWS_STORAGE_BUCKET_NAME +STATIC_URL = S3_URL diff --git a/confs/prod/supervisord.conf b/confs/prod/supervisord.conf index a116ed4..ed54cb7 100644 --- a/confs/prod/supervisord.conf +++ b/confs/prod/supervisord.conf @@ -1,37 +1,32 @@ [supervisord] -logfile = var/log/supervisord.log +logfile = /var/www/karmaworld/var/log/supervisord.log logfile_maxbytes = 10MB logfile_backups = 5 loglevel = info -pidfile = var/run/supervisord.pid +pidfile = /var/www/karmaworld/var/run/supervisord.pid [supervisorctl] -serverurl = unix://var/run/supervisor.sock +serverurl = unix:///var/www/karmaworld/var/run/supervisor.sock [unix_http_server] -file = var/run/supervisor.sock +file = /var/www/karmaworld/var/run/supervisor.sock chmod = 0777 [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [program:gunicorn] -command = ./manage.py run_gunicorn -c confs/production/gunicorn.conf +command=/var/www/karmaworld/manage.py run_gunicorn -c confs/prod/gunicorn.conf autostart = true autorestart = true redirect_stderr = true stopsignal = QUIT [program:celeryd] -command = ./manage.py celery worker --pidfile=var/run/celeryd.pid -l info +command=/var/www/karmaworld/manage.py celery worker --pidfile=/var/www/karmaworld/var/run/celeryd.pid -l info autorestart = true redirect_stderr = true -stdout_logfile = var/log/celeryd.log +stdout_logfile=/var/www/karmaworld/var/log/celeryd.log +priority = 2 +stopsignal = QUIT -[program:celerybeat] -environment = DJANGO_SETTINGS_MODULE=karmaworld.settings.prod -command = ./manage.py celery beat --pidfile=var/run/celerybeat.pid -s var/run/celerybeat-schedule -l info -autorestart = true -redirect_stderr = true -stdout_logfile = var/log/celerybeat.log -priority = 3