Heroku Bamboo to Cedars

I have an existing Rails 3.1rc4 application deployed to heroku on a Bamboo stack. I would like to upgrade to 3.1rc5 and use the new Cedar stack. Since I cannot use heroku stack:migrate , I need to create a new stack and click on it. The problem is that my current application is located at appname.heroku.com . If I just delete this application and recreate it using Cedar, then it will become appname.herokuapp.com . How would I move to Cedar while maintaining appname.heroku.com ?

+6
source share
3 answers

Simply, just rename your old application to something like appnameold , then create a new one with heroku create appname --stack cedar . Heroku automatically redirects and your previous links should not be interrupted. You can google for herokuapp.com site names and test them if you want to check it out.

If your question is how to have both subdomains separately or you just like the look of appname.heroku.com over appname.herokuapp.com , however you're out of luck.

+8
source

I just switched to the cedar stack today (removing the application via the web interface and re-creating it using the -stack cache), and was glad to know that the redirection is now automatic, from http://devcenter.heroku.com/articles/ error-codes # h16__redirect_to_herokuappcom :

H16 - Redirect to herokuapp.com

Cedars uses the new herokuapp.com domain in applications for the new Cedars HTTP Routing Cache. Requests made by the Cedar application on its legacy heroku.com domain will be redirected to the correct herokuapp.com address, and this redirect message will be inserted into the application logs.

+2
source

You can't β€” Cedar apps use herokuapp.com β€” but can you put the synatra app on appname.heroku.com to redirect to appname.herokuapp.com, perhaps, or within your existing application? Or perhaps use your own domain?

0
source

Source: https://habr.com/ru/post/894304/


All Articles