Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 954
Andy Harvey Avatar asked Jun 07 '12 19:06

Andy Harvey


1 Answers

Did you add RAILS_ENV=staging too ?

like image 139
ksol Avatar answered Sep 30 '22 18:09

ksol