Book Image

Heroku Cloud Application Development

By : Anubhav Hanjura
Book Image

Heroku Cloud Application Development

By: Anubhav Hanjura

Overview of this book

Table of Contents (17 chapters)
Heroku Cloud Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The choice of a region


Heroku is currently being enhanced to support the concept of a deployment region, that is, you could choose the geographical region where your application will be deployed. This feature basically enables you to reduce the latency experienced by users of your application.

Currently, Heroku is available in two geographic regions: the US and EU. If most of your users are in Europe, it makes a lot of sense to deploy your application in Europe as access will be faster for them. All applications are created in the US region by default.

The easiest way to check your application's region is to use the following heroku info command:

$ heroku info
=== warm-current-5432
Git URL:       [email protected]:warm-current-5432.git
Owner Email:   [email protected]
Region:        eu
Repo Size:     164M
...

To verify the list of all of the available regions, type the following command:

$ heroku regions
=== regions
eu  Europe
us  United States
Specifying the region

You can use the --region flag...