I am deploying a RubyOnRails 3.1 application on a cedar stack to a hero. From the application, I would like to automatically open the host name (i.e. appname.herokuapp.com
). I have several deployments of the same application on the hero - some for development, some for production and some for production. It would be nice to check the environment variable or make some call to find out the name of my application in the application.
source share