Skip to content

Instantly share code, notes, and snippets.

@davidhq
Created May 19, 2014 23:02
Show Gist options
  • Save davidhq/3bd6c9601e91b0186593 to your computer and use it in GitHub Desktop.
Save davidhq/3bd6c9601e91b0186593 to your computer and use it in GitHub Desktop.
startup script rbenv
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