Ruby on rails 3 heroku#u san没有在';分期付款';heroku模式
我有一个rails应用程序正在使用heroku_san部署到heroku。当我运行Ruby on rails 3 heroku#u san没有在';分期付款';heroku模式,ruby-on-rails-3,heroku,heroku-san,Ruby On Rails 3,Heroku,Heroku San,我有一个rails应用程序正在使用heroku_san部署到heroku。当我运行rake staging console时,它会为heroku上的staging站点提供一个控制台。然而,当我跑的时候 >Rails.env => "production" 这是输出。这是我的heroku.yml文件: production: app: live stack: cedar config: &default_config RAILS_ENV: producti
rake staging console
时,它会为heroku上的staging站点提供一个控制台。然而,当我跑的时候
>Rails.env
=> "production"
这是输出。这是我的heroku.yml文件:
production:
app: live
stack: cedar
config: &default_config
RAILS_ENV: production
RACK_ENV: production
BUNDLE_WITHOUT: "development:test"
addons:
- sendgrid:starter
- heroku-postgresql:dev
staging:
app: staging
stack: cedar
config:
<<: *default_config
RAILS_ENV: staging
RACK_ENV: staging
BUNDLE_WITHOUT: "development:test"
addons:
- sendgrid:starter
- heroku-postgresql:dev
任何关于我做错了什么的见解都会有很大的帮助。我想在此文件中设置一些其他值,但我需要它们不同,应用程序才能工作
请帮忙。提前谢谢 找到了答案。
直到我跑了:
heroku config:add RAILS_ENV=staging --remote staging
heroku config:add RACK_ENV=staging --remote staging
它实际上显示为在heroku上以“暂存”模式运行
staging:
app: staging
stack: cedar
config: default_config
RAILS_ENV: staging
RACK_ENV: staging
BUNDLE_WITHOUT: "development:test"
addons:
- sendgrid:starter
- heroku-postgresql:dev
heroku config:add RAILS_ENV=staging --remote staging
heroku config:add RACK_ENV=staging --remote staging