public
Last active — forked from killercup/README.md

  • Download Gist

Hey @mpapis ! https://gist.github.com/mpapis/5136395#file-unicorn_init-sh-L97 should read CMD="$UNICORN -c ${RAILS_ROOT}/config/unicorn.rb -D"

A link to https://rvm.io/integration/init-d would be good for others to figure out what the rvm wrapper but is about.

Thanks for the updated script. Very useful.

@mpapis what would you recommend for loading the environment?

set -a
. /etc/unicorn/$2.conf
set +a 

and around . $CONFIG line too works but I'm not sure why these aren't accessible by unicorn and rails anyway.

hmm, I had to miss the comments - the script got reworked since then

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.