I have a rails app that runs fine with rails s
, but when I try to load it using pow I\'m getting this error:
Bundler::GemNotFound: Could not find ra
I guess you updated RVM and run into this known issue: https://github.com/37signals/pow/issues/271
the easiest solution is to run it in project dir:
rvm env . > .powenv
OR:
cd /project/path # with .rvmrc
rvm env > .powenv
I've been using this .powrc which nicely covers all bases:
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
Taken from here https://gist.github.com/nbibler/5307941 (thanks nbibler!)
I ran into this issue when I changed from .rvmrc to .ruby-version and .ruby-gemset files.
Change your .powrc file to be:
if [ -f "$rvm_path/scripts/rvm" ] && [ -f ".ruby-version" ] && [ -f ".ruby-gemset" ]; then source "$rvm_path/scripts/rvm" rvm use `cat .ruby-version`@`cat .ruby-gemset` fi
If you are using RVM you have to add a file named ".powenv" at the root of your project as described here :
http://rvm.io/integration/pow