Skip to content

Instantly share code, notes, and snippets.

@tfwright
Forked from marcoceppi/discourse
Last active August 29, 2015 14:09
Show Gist options
  • Save tfwright/eb3dd85918477a8eecea to your computer and use it in GitHub Desktop.
Save tfwright/eb3dd85918477a8eecea to your computer and use it in GitHub Desktop.
description "Discourse Application"
# automatically start
start on (local-filesystems and net-device-up IFACE!=lo)
chdir /home/discourse/discourse
env RAILS_ENV=production
pre-start exec mkdir -p logs
exec bundle exec rails s -p 3001 >> logs/thin.log
respawn
description "Discourse Clockwork"
start on starting discourse-sidekiq
stop on stopping discourse-sidekiq
chdir /home/discourse/discourse
env RAILS_ENV=production
exec bundle exec clockwork config/clock.rb >> logs/clockwork.log
respawn
description "Discourse Sidekiq"
start on starting discourse
stop on stopping discourse
chdir /home/discourse/discourse
expect daemon
env RAILS_ENV=production
exec bundle exec sidekiq:start -e production
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment