pow 的使用和常见问题

版权声明:本文为博主原创文章,未经博主同意不得转载。 https://blog.csdn.net/menxu_work/article/details/24540045


1.安装:

$ curl get.pow.cx | sh

To set up a Rack app, just symlink it into ~/.pow:

$ cd ~/.pow
$ ln -s /path/to/myapp





2.Error

Error starting application

Your 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

3.解决

echo "export POW_RVM_PATH=/usr/local/rvm/scripts/rvm" >> ~/.powconfig


appdir/.powrc

if [ -f "$rvm_path/scripts/rvm" ]; then
  source "$rvm_path/scripts/rvm"
  rvm use .
fi


show rvm list gemsets


gem install bundler



4.重新启动

touch ~/.pow/tmp/restart.txt





posted on 2019-04-17 09:16  xfgnongmin  阅读(256)  评论(0编辑  收藏  举报

导航