Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
430 views
in Technique[技术] by (71.8m points)

forward from heroku app hosted on cedar-14 stack?

Is there a way to forward traffic from an old heroku app hosted on their (no longer supported) cedar-14 stack to the new version of the app (on heroku-18)? I can no longer build to the cedar-14 site. Both apps are using Heroku's default domains, [app name].herokuapp.com.

question from:https://stackoverflow.com/questions/65644649/forward-from-heroku-app-hosted-on-cedar-14-stack

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The goal is to keep the old code in case it is needed while directing people visiting the old domain access to the newly written site. This can be accomplished with carefully sequenced site name changes. Heroku describes how to change site names here. You will also have to update git remotes and such on your local machine but the Heroku instructions tell you how to do that, too.

The now somewhat obvious sequence is:

  1. change name of [old site] to something like [old_site]-backup
  2. change name of [new site] to [old site]

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...