Skip to content

Commit

Permalink
Add bin/resque
Browse files Browse the repository at this point in the history
The resque command in Procfile is getting unwieldy. This adds
bin/resque, which can easily be multiple lines to help break things up
and increase maintainability.

Inspired by ddollar/foreman#496 (comment)
  • Loading branch information
thorncp committed Jun 24, 2016
1 parent becf8e3 commit d4e45d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
resque: TERM_CHILD=1 RESQUE_TERM_TIMEOUT=7 QUEUES=eslint_review,haml_review,scss_review bundle exec rake jobs:work
resque: bin/resque
7 changes: 7 additions & 0 deletions bin/resque
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

export TERM_CHILD=1
export RESQUE_TERM_TIMEOUT=7
export QUEUES=eslint_review,haml_review,scss_review

bundle exec rake jobs:work

0 comments on commit d4e45d4

Please sign in to comment.