Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 heroku#u san没有在';分期付款';heroku模式_Ruby On Rails 3_Heroku_Heroku San - Fatal编程技术网

Ruby on rails 3 heroku#u 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

我有一个rails应用程序正在使用heroku_san部署到heroku。当我运行
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