运行不同用户的Phusion乘客

时间:2015-04-17 15:27:53

标签: ruby-on-rails apache rvm passenger

我创建了一个我想在我的服务器上运行的Rails应用程序。其他人在Apache服务器上创建了基本框架,他们安装了rvm,rails等。 我拉动了项目,并一直在努力,所以我创建了一个新的虚拟主机,在我的etc / hosts中,我指向它。我认为问题是Passenger将其作为我的用户名运行,但它会查找具有不同环境的其他用户来运行我的Web应用程序。 我问对方如何解决这个问题,他不知道。

我尝试过捆绑和sudo捆绑,然后推送到我的服务器(cyberduck),但它仍然给我同样的问题。

这是错误:

It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:

bundle install
If that didn't work, then the problem is probably caused by your application being run under a different environment than it's supposed to. Please check the following:

Is this app supposed to be run as the username user?
Is this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter Phusion Passenger attempted to use.
Please check whether the correct RVM gemset is being used.
Sometimes, RVM gemsets may be broken. Try resetting them.
-------- The exception is as follows: -------

Could not find globalid-0.3.5 in any of the sources (Bundler::GemNotFound)
  /home/username2/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.2/lib/bundler/spec_set.rb:92:in `block in materialize'
  /home/username2/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.2/lib/bundler/spec_set.rb:85:in `map!'
  /home/username2/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.2/lib/bundler/spec_set.rb:85:in `materialize'

1 个答案:

答案 0 :(得分:0)

已解决:apache配置无法正常工作,我必须在用户名下安装passenger gem。