einaregilsson / beanstalk-deploy

GitHub action (and command line script) to deploy apps to Elastic Beanstalk
MIT License
614 stars 133 forks source link

Django Migrations #83

Open isuts opened 2 years ago

isuts commented 2 years ago

Trying to deploy a Django app but not sure how to add a migration step?

sevenearths commented 9 months ago

This is an interesting question. I guess you'd have to log into the EB instance and run them from there. An example of how to automate this can be found towards the bottom of this => https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html#python-django-update-app Maybe this action is not for you and you can use => https://realpython.com/deploying-a-django-app-to-aws-elastic-beanstalk/