首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >‘`parse_ rackup _ file ':rackup文件(config.ru)不可读(ArgumentError)

‘`parse_ rackup _ file ':rackup文件(config.ru)不可读(ArgumentError)
EN

Stack Overflow用户
提问于 2013-12-02 15:12:47
回答 1查看 2.2K关注 0票数 3

我的procfile中有"web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb“。

启动服务器后,我收到以下错误消息。

代码语言:javascript
复制
foreman start
12:29:20 web.1  | started with pid 4876
12:29:20 web.1  | exited with code 1
12:29:20 system | sending SIGTERM to all processes
12:29:20        | /home/stcadmin/.rvm/gems/ruby-1.9.3-p448@cpi2/gems/unicorn-4.7.0/lib/unicorn/configurator.rb:659:in `parse_rackup_file': rackup file (config.ru) not readable (ArgumentError)
12:29:20        |   from /home/stcadmin/.rvm/gems/ruby-1.9.3-p448@cpi2/gems/unicorn-4.7.0/lib/unicorn/configurator.rb:77:in `reload'
12:29:20        |   from /home/stcadmin/.rvm/gems/ruby-1.9.3-p448@cpi2/gems/unicorn-4.7.0/lib/unicorn/configurator.rb:68:in `initialize'
12:29:20        |   from /home/stcadmin/.rvm/gems/ruby-1.9.3-p448@cpi2/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:108:in `new'
12:29:20        |   from /home/stcadmin/.rvm/gems/ruby-1.9.3-p448@cpi2/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:108:in `initialize'
12:29:20        |   from /home/stcadmin/.rvm/gems/ruby-1.9.3-p448@cpi2/gems/unicorn-4.7.0/bin/unicorn:126:in `new'
12:29:20        |   from /home/stcadmin/.rvm/gems/ruby-1.9.3-p448@cpi2/gems/unicorn-4.7.0/bin/unicorn:126:in `<top (required)>'
12:29:20        |   from /home/stcadmin/.rvm/gems/ruby-1.9.3-p448@cpi2/bin/unicorn:19:in `load'
12:29:20        |   from /home/stcadmin/.rvm/gems/ruby-1.9.3-p448@cpi2/bin/unicorn:19:in `<main>'
12:29:20        |   from /home/stcadmin/.rvm/gems/ruby-1.9.3-  p448@cpi2/bin/ruby_executable_hooks:15:in `eval'
12:29:20        |   from /home/stcadmin/.rvm/gems/ruby-1.9.3-p448@cpi2/bin/ruby_executable_hooks:15:in `<main>'
12:29:20        | master failed to start, check stderr log for details

我当前的应用程序是在Rails 2.3.18中。

EN

回答 1

Stack Overflow用户

发布于 2013-12-03 06:14:29

在最后添加类似于"-E开发-D“的内容。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20322730

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档