Andy Harvey
Andy Harvey

Reputation: 12653

How to configure staging env on Heroku?

I have a Rails app on Heroku using the Postgres 9 beta.

I've tried to configure a staging environment using

heroku config:add RACK_ENV=staging --remote staging

but the app still thinks its in a production env.

Rails.env
=>"production"

What am I doing wrong?

Upvotes: 9

Views: 2861

Answers (1)

ksol
ksol

Reputation: 12235

Did you add RAILS_ENV=staging too ?

Upvotes: 15

Related Questions