使用capistrano部署Rails应用,然后显示
[deploy:migrate] Run `rake db:migrate`
00:37 deploy:migrating
01 $HOME/.rbenv/bin/rbenv exec bundle exec rake db:migrate
01 config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
01
01 * development - set it to false
01 * test - set it to false (unless you use a tool that preloads your test environment)
01 * production - set it to true
01
在我的代码中已经将其设置为上面的
因此无法找到有效的解决方法
答案 0 :(得分:0)
您还必须在config/deploy/production.rb
set :stage, :production
您还可以将分支设置为-
set :branch, :branch_name
或者可能会从高速缓存中读取它,以便您可以删除目录并重新部署它。