Heroku is the best platform to host our rails applications for free. Many people are using heroku to live their applications. Whenever you hosted your rails app on heroku, by default it runs in production mode. Now if you want to run your app on staging you specify some configuration. Here they are:
1) First create a file staging.rb in ‘config/environments/‘ directory and copy the contents which are there in production.rb file.
Note: Please see contents and then copy.
2) Do necessary configurations what you need for your app to run application in staging mode. In my case I did configuration for facebook.
3) Next run this ‘heroku config:add RACK_ENV=staging‘ . It will restart your app in staging mode. Now access URL. That’s it.
Any suggestions or feedback would be welcome.