Change the area of โ€‹โ€‹the hero after creating

Thought it might work, but itโ€™s not:

heroku appname --region=eu 

This works, but I already have an existing application, so it makes no sense to me:

 heroku create --region eu 

Or for the addon:

 heroku addons:list --region=eu 
+10
source share
2 answers

You can do this by opening the application. Take a look at the Heroku documentation here: https://devcenter.heroku.com/articles/app-migration

0
source

There is no own ability to simply switch, but there is still a way to do this.

Create an application branch in the region you need.
For example, you have an application in the US region and you want to transfer it to the EU:

  • Run this command to create a new application that will be a copy of the existing one:
 heroku fork --from sourceapp --to targetapp --region eu 
  • After checking the performance, check (and if necessary copy and paste) the settings, permissions, additions, etc. They can also be copied, but it is better to check.
  • Rename sourceapp to something like sourceapp_old .
  • Rename targetapp to sourceapp .

NOTE. But this method has several disadvantages:

In any case, I would recommend reading the official Heroku documentation before committing risky actions like this.

0
source

All Articles