15

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
user254197
  • 833
  • 1
  • 7
  • 29

2 Answers2

6

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.

wowkin2
  • 4,058
  • 2
  • 16
  • 45
0

You can do it by forking your app. Have a look at the Heroku documentation here: https://devcenter.heroku.com/articles/app-migration

ellen
  • 510
  • 5
  • 9