I have the command heroku run -a ${{ secrets.HEROKU_APP_NAME }} python manage.py migrate
set to run after pushing master to Heroku. It runs without errors (below is it's the output):
Running python manage.py migrate on ***... ?
Running python manage.py migrate on ***... done
But the migrations don't actually run. What could be the problem?
Found the answer in the Heroku docs. Essentially, add release: python manage.py migrate
as the first line in the Procfile
. It doesn't tell me why it's not working from the GH action, but it gets the job done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With