Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
456 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 Answer

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]

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...