Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (17 loc) · 712 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 712 Bytes

This has come in handy more times than it should have.

Configuration

To redirect all requests to example.com:

heroku config:add NEW_BASE_URL=http://example.com

Deployment

Deploy to Heroku

If the old app that you're redirecting from isn't a Node app you'll need to change the buildpack:

heroku buildpacks:set heroku/nodejs

You can then replace the app by pushing with -f:

git push heroku master -f

NOTE: If the above doesn't work you may need to delete and re-create your Heroku app before pushing an entirely new Git repository into it.