-
-
Save kirs/3825306 to your computer and use it in GitHub Desktop.
Unicorn service for Runit
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
#!/bin/sh | |
exec 2>&1 | |
export RAILS_ENV=production | |
APP_ROOT=/home/deploy/project_name | |
UNICORN="/usr/local/rvm/bin/rvm 1.9.2@project_name exec bundle exec unicorn_rails -c $APP_ROOT/current/config/unicorn.rb -E $RAILS_ENV" | |
cd $APP_ROOT/current | |
exec $UNICORN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment