Skip to content

Instantly share code, notes, and snippets.

@marcoceppi
Created February 8, 2013 20:04
Show Gist options
  • Save marcoceppi/4741567 to your computer and use it in GitHub Desktop.
Save marcoceppi/4741567 to your computer and use it in GitHub Desktop.
Upstart attempts
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