Skip to content

Instantly share code, notes, and snippets.

@ewheeler
Created July 16, 2013 21:17
Show Gist options
  • Save ewheeler/6015235 to your computer and use it in GitHub Desktop.
Save ewheeler/6015235 to your computer and use it in GitHub Desktop.
[circus]
statsd = 1
stats_endpoint = tcp://127.0.0.1:5557
httpd = 1
httpd_host = 127.0.0.1
httpd_port = 8001
endpoint = tcp://127.0.0.1:5555
pubsub_endpoint = tcp://127.0.0.1:5556
check_delay = 5
logoutput = logs/circus.log
[socket:rapidsms]
host = 127.0.0.1
port = 8000
[watcher:rapidsms]
working_dir = /Users/ewheeler/dev/thousand
cmd = /Users/ewheeler/.virtualenvs/thousand-harvest/bin/chaussette --fd $(circus.sockets.rapidsms) --backend=meinheld thousand.wsgi.application
use_sockets = True
numprocesses = 1
copy_env = True
copy_path = True
virtualenv = /Users/ewheeler/.virtualenvs/thousand-harvest
stderr_stream.class = FileStream
stdout_stream.class = FileStream
stdout_stream.filename = logs/rapidsms-stdout.log
stderr_stream.filename = logs/rapidsms-stderr.log
# push to log every 300 ms
stdout_stream.refresh_time = 0.3
# rotate the log file when it reaches 1 gb
# and save 5 copied of rotated files
stdout_stream.max_bytes = 1073741824
stdout_stream.backup_count = 5
hooks.after_start = thousand.hooks.run_raven
[socket:cleaver]
host = 127.0.0.1
port = 8003
[watcher:cleaver]
cmd = /Users/ewheeler/.virtualenvs/thousand-harvest/bin/chaussette --fd $(circus.sockets.cleaver) --backend=meinheld experiments.wsgi.application
use_sockets = True
numprocesses = 1
copy_env = True
copy_path = True
virtualenv = /Users/ewheeler/.virtualenvs/thousand-harvest
stderr_stream.class = FileStream
stdout_stream.class = FileStream
stdout_stream.filename = logs/cleaver-stdout.log
stderr_stream.filename = logs/cleaver-stderr.log
# push to log every 300 ms
stdout_stream.refresh_time = 0.3
# rotate the log file when it reaches 1 gb
# and save 5 copied of rotated files
stdout_stream.max_bytes = 1073741824
stdout_stream.backup_count = 5
[watcher:dcelery]
working_dir = /Users/ewheeler/dev/thousand
cmd = /Users/ewheeler/.virtualenvs/thousand-harvest/bin/python
args = manage.py celery worker -E --loglevel=info --settings=$(circus.env.DJANGO_SETTINGS_MODULE)
copy_env = True
copy_path = True
virtualenv = /Users/ewheeler/.virtualenvs/thousand-harvest
stderr_stream.class = FileStream
stdout_stream.class = FileStream
stdout_stream.filename = logs/celery-stdout.log
stderr_stream.filename = logs/celery-stderr.log
stdout_stream.refresh_time = 0.3
stdout_stream.max_bytes = 1073741824
stdout_stream.backup_count = 5
[watcher:dcelerybeat]
working_dir = /Users/ewheeler/dev/thousand
cmd = /Users/ewheeler/.virtualenvs/thousand-harvest/bin/python
args = manage.py celery beat --loglevel=info --settings=$(circus.env.DJANGO_SETTINGS_MODULE)
copy_env = True
copy_path = True
virtualenv = /Users/ewheeler/.virtualenvs/thousand-harvest
stderr_stream.class = FileStream
stdout_stream.class = FileStream
stdout_stream.filename = logs/celerybeat-stdout.log
stderr_stream.filename = logs/celerybeat-stderr.log
stdout_stream.refresh_time = 0.3
stdout_stream.max_bytes = 1073741824
stdout_stream.backup_count = 5
[watcher:dceleryflower]
working_dir = /Users/ewheeler/dev/thousand
cmd = /Users/ewheeler/.virtualenvs/thousand-harvest/bin/python
args = manage.py celery flower --address=127.0.0.1 --port=8002 --loglevel=info --settings=$(circus.env.DJANGO_SETTINGS_MODULE)
copy_env = True
copy_path = True
virtualenv = /Users/ewheeler/.virtualenvs/thousand-harvest
stderr_stream.class = FileStream
stdout_stream.class = FileStream
stdout_stream.filename = logs/celeryflower-stdout.log
stderr_stream.filename = logs/celeryflower-stderr.log
stdout_stream.refresh_time = 0.3
stdout_stream.max_bytes = 1073741824
stdout_stream.backup_count = 5
[env]
PYTHONPATH = /Users/ewheeler/dev/thousand
DJANGO_SETTINGS_MODULE=thousand.settings.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment