I have my Django service up and running on AWS Elastic Beanstalk (on Amazon Linux 2). eb deploy
works perfectly. But I would like to run some functions from shell of Django on by eb or maybe perform migrations on my DB.
I am unable to find my package after I eb ssh <environment-name>
so cant find the manage.py
file.
Related question - Run manage.py from AWS EB Linux instance
I believe it might be outdated ?
cd /var/app/current/
cd /var/app/staging/
source $(find /var/app/venv/*/bin/activate)
export $(sudo cat /opt/elasticbeanstalk/deployment/env | xargs)
python manage.py shell
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