Capistrano 3, Rails 4, database configuration does not specify adapter

前端 未结 6 962
半阙折子戏
半阙折子戏 2020-12-24 14:47

When I start

cap production deploy

it fails like this:

DEBUG [4ee8fa7a] Command: cd /home/deploy/myapp/releases/         


        
6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-24 15:14

    Using Cap 3 and capistrano_rails on rails 4 I was getting the same error; in the environment file(s) being deployed, I set

    set :stage, :production
    set :rails_env, 'production' # even though doc says only need to do this if it's different
    

    Doc here: https://github.com/capistrano/rails

提交回复
热议问题