Create an file called .powrc
in your projects root directory. Copy and paste the content below to your file.
if [ -f "$rvm_path/scripts/rvm" ]; then
source "$rvm_path/scripts/rvm"
if [ -f ".rvmrc" ]; then
source ".rvmrc"
fi
if [ -f ".ruby-version" ]; then
rvm use `cat .ruby-version`
fi
if [ -f ".ruby-gemset" ]; then
rvm gemset use --create `cat .ruby-gemset`
fi
fi
This will look to your ruby environment files and select the correct version from it. If this won't work on your first try then make sure you have an .rvmrc
or .ruby-version
file in your root directory for the project.
And don't forget to touch tmp/restart.txt
to restart your application.