Passenger无法加载github源的gem包问题
程序员文章站
2022-05-19 20:21:56
...
添加github的项目源之后,项目在产品模式下报错,使用的是passenger来启动的项目
解决方案:
It looks like Bundler could not find a gem. This is probably because your application is being run under a different environment than it's supposed to. Please check the following: * Is this app supposed to be run as the `***此处省略***` user? * Is this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter Phusion Passenger attempted to use. * Are you using RVM? Please check whether the correct gemset is being used. * If all of the above fails, try resetting your RVM gemsets: https://github.com/phusion/passenger/wiki/Resetting-RVM-gemsets -------- The exception is as follows: ------- Could not find ***** in any of the sources (Bundler::GemNotFound)
解决方案:
bundle install --deployment