Created
May 19, 2014 23:02
-
-
Save davidhq/3bd6c9601e91b0186593 to your computer and use it in GitHub Desktop.
startup script rbenv
This file contains hidden or 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
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin | |
CONFIG_FILE=/etc/default/thinking_sphinx | |
. $CONFIG_FILE || exit | |
PATH=/home/$USER/.rbenv/shims:/home/$USER/.rbenv/bin:$PATH | |
... | |
echo "Starting $PROGRAM_NAME" | |
cd $APP_PATH | |
sudo -nH -u $USER bash -l -c "bundle exec rake ts:start RAILS_ENV=production" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment