gpt4 book ai didi

ruby-on-rails - unicorn 不在生产模式下运行

转载 作者:行者123 更新时间:2023-12-05 01:09:45 28 4
gpt4 key购买 nike

我正在运行堆栈 nginx+unicorn+rails 3.2
当我运行时

bundle exec unicorn_rails -c config/unicorn.rb -E development
没关系,网站运行良好
当我尝试在生产模式下启动 unicorn 站点时
bundle exec unicorn_rails -c config/unicorn.rb -E production
我有“我们很抱歉,但出了点问题。”错误:
enter image description here

最佳答案

您是否为生产运行迁移?

rake db:migrate RAILS_ENV="production"

问题可能不是 unicorn 。

关于ruby-on-rails - unicorn 不在生产模式下运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15452265/

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