加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – Rails服务器在启动后立即退出

发布时间:2020-12-17 01:57:05 所属栏目:百科 来源:网络整理
导读:我有一个奇怪的问题.我刚刚在远程服务器上配置了rails项目.但是在我运行’rails server’命令后立即出现此错误: [pediatric-nutri]# rails server= Booting WEBrick= Rails 4.1.16 application starting in development on http://0.0.0.0:3000= Run `rails
我有一个奇怪的问题.我刚刚在远程服务器上配置了rails项目.但是在我运行’rails server’命令后立即出现此错误:

[pediatric-nutri]# rails server
=> Booting WEBrick
=> Rails 4.1.16 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/home/lookwhat/rails_apps/pediatric-nutri/app/controllers/application_controller.rb:5:in `<class:ApplicationController>': undefined method `decent_configuration' for ApplicationController:Class (NoMethodError)
    from /home/lookwhat/rails_apps/pediatric-nutri/app/controllers/application_controller.rb:1:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.1.16/lib/active_support/dependencies.rb:443:in `load'

解决方法

也许服务器端将您的decent_exposure更新为不同版本的API(V2到V3).有关它的更多细节
here特别是你可能面临的问题升级部分.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读