繁体   English   中英

捆绑exec rails因独角兽而失败

[英]bundle exec rails s failed because of unicorn

我正在为环境使用ubuntu 16.04和rbenv。 成功安装捆绑软件后,我尝试使用bundle exec rails s启动服务器,但是出现以下错误

/home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn/const.rb:21:in `require_relative': cannot load such file -- /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn/version (LoadError)
    from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn/const.rb:21:in `<top (required)>'
    from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn.rb:122:in `require_relative'
    from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn.rb:122:in `block in <top (required)>'
    from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn.rb:121:in `each'
    from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn.rb:121:in `<top (required)>'
    from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:91:in `require'
    from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
    from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:86:in `each'
    from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:86:in `block in require'
    from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:75:in `each'
    from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:75:in `require'
    from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler.rb:107:in `require'
    from /home/mario/prayer-portal/config/application.rb:7:in `<top (required)>'
    from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands/commands_tasks.rb:79:in `require'
    from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands/commands_tasks.rb:79:in `block in server'
    from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands/commands_tasks.rb:76:in `tap'
    from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands/commands_tasks.rb:76:in `server'
    from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
    from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

尝试通过“ sudo bundle exec gem uninstall unicorn”卸载gem,然后通过标准的“ sudo bundle install”重新安装它。 它将更新独角兽版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM