Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django migrations not working from GitHub Actions

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?

like image 821
belteshazzar Avatar asked Oct 16 '22 03:10

belteshazzar


1 Answers

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.

like image 93
belteshazzar Avatar answered Oct 30 '22 18:10

belteshazzar