使用capistrano 3进行部署时出现以下错误
INFO [5d0ddb5f] Running ~/.rvm/bin/rvm default do bundle exec rake assets:precompile on 162.243.253.220
DEBUG [5d0ddb5f] Command: cd /home/deployer/apps/nabthat/releases/20131227083740 && ( RAILS_ENV=staging ~/.rvm/bin/rvm default do bundle exec rake assets:precompile )
DEBUG [5d0ddb5f] /home/deployer/.rvm/rubies/ruby-2.0.0-p353/bin/ruby /home/deployer/apps/nabthat/shared/bundle/ruby/2.0.0/bin/rake assets:precompile:all RAILS_ENV=staging RAILS_GROUPS=assets
DEBUG [5d0ddb5f]
DEBUG [5d0ddb5f] rake aborted!
DEBUG [5d0ddb5f]
DEBUG [5d0ddb5f] database configuration does not specify adapter
DEBUG [5d0ddb5f]
DEBUG [5d0ddb5f] /home/deployer/apps/nabthat/shared/bundle/ruby/2.0.0/gems/activerecord- 3.2.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:47:in `resolve_hash_connection
我使用命令部署
bundle exec staging deploy
但错误显示RAILS_ENV =暂存,如何将其更改为生产
我试过
bundle exec staging deploy RAILS_ENV="production"
仍然是同样的错误