A guide to migrating your app to different cloud providers

We recently moved from AWS EC2 to Heroku.

Before you start

Create a Docker image

Determine your application’s dependencies

System level dependencies

Environment Variables

Local files

Datastores

Other environment specific checks

3rd parties

Network interconnect

Set up the environment

Start with the low risk background processes

Web processes

Some issues we ran into

Assets

Naked Domains

DNS                 Type   Target                Weight
ruby.tophatter.com  CNAME  heroku.tophatter.com  1  
ruby.tophatter.com  CNAME  ec2.tophatter.com     99

SSL Issues

javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
openssl s_client -servername tophatter.com -connect tophatter.com:443

About Tophatter

Product & Engineering at Tophatter

Product & Engineering at Tophatter

Sanjay R

Written by

Sanjay R

Software Engineer. Helping build and scale one of the fastest growing e-commerce startups, tophatter.com

Product & Engineering at Tophatter

Product & Engineering at Tophatter