Skip to content

Instantly share code, notes, and snippets.

@mpapis
Forked from killercup/README.md
Last active December 14, 2015 19:28
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mpapis/5136395 to your computer and use it in GitHub Desktop.
Save mpapis/5136395 to your computer and use it in GitHub Desktop.
@AJamesPhillips
Copy link

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.

@AJamesPhillips
Copy link

@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.

@mpapis
Copy link
Author

mpapis commented Sep 20, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment