Change heroku region after creation

user254197 picture user254197 · Sep 7, 2015 · Viewed 8.5k times · Source

Thought this could work, but it doesn't:

 heroku appname --region=eu

This works, but I already have an existing app, so this does not make sense for me:

heroku create --region eu

Or for an addon:

heroku addons:list --region=eu

Answer

wowkin2 picture wowkin2 · Oct 3, 2019

There is NO native ability just to switch region, but still there is a way how to do this.

Create fork of the app in a region you need.
For example, you have app in US region and you want to migrate it to EU:

  • Run this command to create a new app that will be a copy of existing:
    heroku fork --from sourceapp --to targetapp --region eu
    
  • After check if it is working, check (and copy-paste if needed) settings, permissions, addons, etc. They might copy too, but it is better to check.
  • Rename sourceapp to something like sourceapp_old.
  • Rename targetapp to sourceapp.

NOTE: But still this method has few cons:

Anyhow, I'd recommend to read official Heroku documentation before doing so risky actions like this.