-
-
Save tfwright/eb3dd85918477a8eecea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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