Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are Heroku apps hosted exactly?

Tags:

heroku

Through https://devcenter.heroku.com/articles/regions I see that for heroku common runtime spaces heroku has two available regions: Europe and United States. But I couldn't find exactly in any official documentation which region exactly of United States heroku hosts the application. For example I want to know if it hosts on east, west, north, south.

Thanks

like image 368
brazuka Avatar asked Apr 17 '17 13:04

brazuka


People also ask

Where is Heroku app hosted?

The Heroku US region is AWS's us-east-1. EU is eu-west-1. That makes the US region located in North Virginia, and EU in Ireland.

Is Heroku hosted on AWS?

AWS: the Key Differences. Heroku is a Platform as a Service (PaaS) that is actually built on top of AWS. Heroku takes a curated selection of the services and capabilities available from AWS and packages them into an easy-to-use solution for application development.

What server does Heroku use?

If you need maximum performance Heroku recommends a multi-process multi-threaded server, we currently recommend Puma. If you do not specify a web server in your Procfile , it is likely that you're running WEBrick in production.

Does Heroku have a web server?

Heroku allows developers to quickly and almost painlessly deploy an application on a web server. It also provides a lot of plugins that you can integrate into your application.

Which region exactly of United States Heroku hosts the application?

But I couldn't find exactly in any official documentation which region exactly of United States heroku hosts the application. For example I want to know if it hosts on east, west, north, south. The Heroku US region is AWS's us-east-1 . EU is eu-west-1. That makes the US region located in North Virginia, and EU in Ireland.

What is Heroku and how to use it?

How about using Heroku? Heroku is a hosting platform where you can deploy dynamic applications in Rails, PHP, Node.js, and Python web applications. In this guide, I will be showing you how to host apps with it.

How many apps can I run on Heroku at once?

The difference with Heroku is that you can indefinitely run up to 100 backend apps at the same time for free. Does Heroku have a limit? Calls to the Heroku API are limited to a rate of at most 4500 calls per hour. Can I host my app on Heroku? You need to use the Git command in order to deploy your application to Heroku.

How to host a repository on Heroku?

Click on the repo that you want to host. Finally, Click on the Deploy Branch button at the bottom to host it. You can access it by going to this URL https:// [appname].herokuapp.com. The second method is using the official Heroku CLI (Command Line Interface). For this, you must first install Heroku CLI.


4 Answers

The Heroku US region is AWS's us-east-1. EU is eu-west-1.

That makes the US region located in North Virginia, and EU in Ireland.

like image 187
Damien MATHIEU Avatar answered Oct 20 '22 12:10

Damien MATHIEU


As the URL you posted, just follow their command in your own terminal shell:

$ heroku regions --common
ID  Location       Runtime
──  ─────────────  ──────────────
eu  Europe         Common Runtime
us  United States  Common Runtime

Then use the curl as they suggest, just change the /regions/frankfurt to the region ID you want (i.e. us)

$ curl -n -X GET https://api.heroku.com/regions/us -H "Accept: application/vnd.heroku+json; version=3"
{
  "country":"United States",
  "created_at":"2012-11-21T20:44:16Z",
  "description":"United States",
  "id":"59accabd-516d-4f0e-83e6-6e3757701145",
  "locale":"Virginia",
  "name":"us",
  "private_capable":false,
  "provider":{
    "name":"amazon-web-services",
    "region":"us-east-1"
  },
  "updated_at":"2016-08-09T22:03:28Z"
}

Here you are: "locale":"Virginia"

Damien got you the answer, I just reconfirm if there is any changes by running all those commands.

The Heroku US region is AWS's us-east-1. EU is eu-west-1.

That makes the US region located in North Virginia, and EU in Ireland.

like image 23
John Pang Avatar answered Oct 20 '22 13:10

John Pang


The other answers are great, but a simpler way to view the details about the regions is to run heroku regions --common --json, which outputs pretty formatted JSON:

[
  {
    "country": "Ireland",
    "created_at": "2013-09-19T01:29:12Z",
    "description": "Europe",
    "id": "ed30241c-ed8c-4bb6-9714-61953675d0b4",
    "locale": "Dublin",
    "name": "eu",
    "private_capable": false,
    "provider": {
      "name": "amazon-web-services",
      "region": "eu-west-1"
    },
    "updated_at": "2016-08-09T22:03:28Z"
  },
  {
    "country": "United States",
    "created_at": "2012-11-21T20:44:16Z",
    "description": "United States",
    "id": "59accabd-516d-4f0e-83e6-6e3757701145",
    "locale": "Virginia",
    "name": "us",
    "private_capable": false,
    "provider": {
      "name": "amazon-web-services",
      "region": "us-east-1"
    },
    "updated_at": "2016-08-09T22:03:28Z"
  }
]

like image 29
balexand Avatar answered Oct 20 '22 11:10

balexand


Regin EU details :

Country -> Ireland
City -> Dublin
AWS Region -> eu-west-1

Region US details :

Country -> United States
City -> Virginia
AWS Region -> us-east-1
like image 43
svikramjeet Avatar answered Oct 20 '22 13:10

svikramjeet