Created
March 2, 2016 14:11
-
-
Save pedro108/bd9610c38fd840010dfe to your computer and use it in GitHub Desktop.
Runs RVM startup script, and execute a bundle exec task for Monit
This file contains 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
#!/bin/bash | |
export rvm_path=/home/ubuntu/.rvm; | |
. $rvm_path/scripts/rvm; | |
eval "su - ubuntu -c 'cd #{absolute_path_to_rails_app_root}; RAILS_ENV=production bundle exec $@'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment