forked from rubber/rubber
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request rubber#201 from messick/unicorn_template_fixes
Unicorn Template Fixes
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
templates/unicorn/config/rubber/role/unicorn/unicorn-upstart.conf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% | ||
@path = "/etc/init/unicorn.conf" | ||
@backup = false | ||
%> | ||
description "unicorn daemon" | ||
|
||
start on runlevel [2345] | ||
stop on runlevel [016] | ||
|
||
script | ||
exec /bin/bash -l -c 'cd <%= Rubber.root %> && exec bundle exec unicorn_rails -c <%= Rubber.root %>/config/unicorn.rb -E <%= Rubber.env %> -D >> log/unicorn_upstart.log 2>&1' | ||
end script |
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