Skip to content

Instantly share code, notes, and snippets.

@iam-mhaseeb
Created February 27, 2021 18:59
Show Gist options
  • Save iam-mhaseeb/a1206d09a02e9fb860696fe191c6c9cf to your computer and use it in GitHub Desktop.
Save iam-mhaseeb/a1206d09a02e9fb860696fe191c6c9cf to your computer and use it in GitHub Desktop.
Host wordpress site on heroku for free lifetime.

Host wordpress site on heroku for free lifetime.

Things you will need before getting started:

  1. GIT installed on your PC (https://git-scm.com​)
  2. An account with Heroku (https://www.heroku.com/)
  3. Heroku toolbelt (The Heroku CLI | Heroku Dev Center)

Next steps:

  1. Open console.
  2. Run: git clone git://github.com/mhoofman/wordpress-heroku.git
  3. Run: cd wordpress-heroku
  4. Run: heroku addons:create heroku-postgresql
  5. Run: heroku pg:promote HEROKU_POSTGRESQL_INSTANCE (where HEROKU_POSTGRESQL_INSTANCE) is the result of the create code you ran before.
  6. Run: git push heroku
  7. Wait.
  8. Navigate to website.
  9. Go through instructions.
  10. Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment