From 13bde668a30a20613dc08c65566543aaeedcfa5f Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 25 Jun 2014 03:28:42 +0200 Subject: [PATCH] put rbenv stuff into init script --- config/unicorn_init.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/unicorn_init.sh b/config/unicorn_init.sh index ab16755..25d4f13 100755 --- a/config/unicorn_init.sh +++ b/config/unicorn_init.sh @@ -10,6 +10,10 @@ ### END INIT INFO set -e +# not sure why, but .bash_profile is not being executed +export PATH="$HOME/.rbenv/bin:$PATH" +eval "$(rbenv init -)" + # Feel free to change any of the following variables for your app: TIMEOUT="${TIMEOUT-60}" APP_ROOT="/home/www-data/apps/redstoner/current"