Skip to content

Instantly share code, notes, and snippets.

@knktc
Created August 29, 2014 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knktc/8a2097bf9e3b34592ae0 to your computer and use it in GitHub Desktop.
Save knktc/8a2097bf9e3b34592ae0 to your computer and use it in GitHub Desktop.
redash updater start script for 0.4
description "re:dash updater"
chdir /opt/redash/current
setuid redash
kill signal TERM
respawn
respawn limit 10 5
start on started network-services
stop on stopping network-services
script
bin/run celery worker --app=redash.worker --beat -Qqueries,celery,scheduled_queries
end script
description "re:dash web"
chdir /opt/redash/current
setuid redash
kill signal INT
respawn
respawn limit 10 5
start on started network-services
stop on stopping network-services
script
bin/run gunicorn -b 127.0.0.1:5000 --name redash -w 4 redash.wsgi:app
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment