0

我正在尝试运行 Fedena,它是 Ruby on Rails 应用程序。我有一个 CPanel 的托管帐户。当我尝试运行 Ruby on Rails 应用程序时,我在日志中看到以下错误:

Bundler couldn't find some gems.Did you run 'bundle install'

问题:

  1. 这个问题与 Ruby on Rails 版本有关吗?我怎么知道我正在运行哪个版本?
  2. 我该如何解决这个问题?

这是完整的错误:

/home/abc/rails_apps/abc/config/../config/preinitializer.rb:18: Bundler couldn't find some gems.Did you run `bundle install`? (RuntimeError)
    from /home/abc/rails_apps/abc/config/boot.rb:29:in `load'
    from /home/abc/rails_apps/abc/config/boot.rb:29:in `preinitialize'
    from /home/abc/rails_apps/abc/config/boot.rb:11:in `boot!'
    from /home/abc/rails_apps/abc/config/boot.rb:127
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /home/abc/rails_apps/abc/config/environment.rb:1
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:in `rails'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `call'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `listener'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `call'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `initialize'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
    from /usr/bin/mongrel_rails:23:in `load'
4

2 回答 2

0

fedena在本地 m/c 中运行应用程序

  1. 版本

  2. 捆绑安装信息

希望能帮助到你..

于 2014-02-07T07:41:12.057 回答
0

正如您提到的,您正在 Cpanel 中进行部署。首先,您应该获得 SSH 访问权限,然后您可以bundle install在应用程序的根文件夹中运行命令。

  1. 您可以rails -v通过 SSH 运行以了解 Rails 版本。
  2. 在应用程序的根文件夹中运行命令bundle install以解决此问题。
于 2019-05-27T12:10:05.340 回答