WordPress on Heroku

I wanted a simple way to push WordPress to Heroku.  It doesn’t get much simpler than this

https://github.com/mhoofman/wordpress-heroku

In regards to using your own custom domain name, the tutorial recommends using A records with a set of defined IP addresses.  Instead, I think the better approach is to use a CNAME record pointing to your Heroku App’s location.  You can find Heroku’s recommendation here:

https://devcenter.heroku.com/articles/custom-domains#custom-subdomains

Additionally, the tutorial doesn’t mention how to change the domain name within WordPress.  To change the domain in wordpress, just do the following:

  1. Login to your WordPress Administrator’s Control Panel
  2. Goto: Main Left Menu -> Settings -> General
  3. Change the WordPress Address
  4. Change the Site Address
  5. Save.

This will take care of the domain name switch.  Just remember to add a CNAME record to your domain’s DNS before completing this step.

Leave a Reply

Your email address will not be published. Required fields are marked *