1. installation:
$ curl get.pow.cx | sh
To set up a Rack app, just symlink it~/.pow
:
$ cd ~/.pow
$ ln -s /path/to/myapp
2. ErrorError starting applicationYour Rack app raised an exception when Pow tried to run it.
LoadError: cannot load such file -- bundler/setup/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'~/Workspace/ruby/beixin/fgcc_menxu/config/boot.rb:6:in `<top (required)>'/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'Show 17 more lines
- Pow User's Manual
- Troubleshooting
- Frequently Asked Questions
- Issue Tracker
3. Solution
[Ruby]View plaincopyprint?
- Echo "export POW_RVM_PATH =/usr/local/rvm/scripts/rvm"> ~ /. Powconfig
echo "export POW_RVM_PATH=/usr/local/rvm/scripts/rvm" >> ~/.powconfig
Appdir/. powrc
[Vb]View plaincopyprint?
- If [-f "$ rvm_path/scripts/rvm"]; then
- Source "$ rvm_path/scripts/rvm"
- Rvm use.
- Fi
if [ -f "$rvm_path/scripts/rvm" ]; then source "$rvm_path/scripts/rvm" rvm use .fi
Show rvm list gemsets
[Ruby]View plaincopyprint?
- Gem install bundler