Permalink
Browse files

Load RVM inside scripts if available

  • Loading branch information...
1 parent c75f08d commit cd8c7b30166fb13ddda9738bd55c0fadb7dd6969 Daniel Martin committed Feb 19, 2012
Showing with 6 additions and 0 deletions.
  1. +3 −0 reset.sh
  2. +3 −0 start.sh
View
@@ -9,6 +9,9 @@
# this file.
#
+# This loads RVM if available which is needed to process the ./server/.rvmrc
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
+
export RAILS_ENV=production
cd server
View
@@ -9,6 +9,9 @@
# this file.
#
+# This loads RVM if available which is needed to process the ./server/.rvmrc
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
+
# sorry folks, nothing smart going on here
export RAILS_ENV=production
cd server

0 comments on commit cd8c7b3

Please sign in to comment.