gpt4 book ai didi

ruby-on-rails - `parse_rackup_file' : rackup file (config. ru) 不可读 (ArgumentError)

转载 作者:行者123 更新时间:2023-12-02 03:40:34 26 4
gpt4 key购买 nike

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

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

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 中。

最佳答案

在最后添加类似“-E development -D”的内容。

关于ruby-on-rails - `parse_rackup_file' : rackup file (config. ru) 不可读 (ArgumentError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20322730/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com