1. Install Heroku CLI
    • https://cli-assets.heroku.com/branches/stable/heroku-osx.pkg
  2. Create a Heroku app (you will need an account)
    • heroku login
    • heroku create
  3. Add PHP and postgreSQL buildpacks
    • heroku buildpacks:set heroku/php
    • heroku addons:create heroku-postgresql:hobby-dev
  4. Update .env and doctrine.yaml config to use postgreSQL

  5. Add doctrine migration as a composer compile script
    "scripts": {
         "compile": [
             "php bin/console doctrine:migrations:migrate"
         ]
     }
    
  6. Create symfony APP_ENV and APP_SECRET environment variables on Heroku
    • heroku config:set APP_ENV=prod APP_SECRET=YOUR SECRET
  7. Create a Procfile with the following dyno in it
    • web: vendor/bin/heroku-php-nginx public/
  8. Clone / create git repo and push the changes to heroku
    • git push heroku master
  9. Tail the logs - heroku logs