如何从AWS Elastic Beanstalk AMI运行manage.py。
- SSH登录Linux(
eb ssh
)- (可选,可能需要运行
sudo su -
以具有适当的权限)
- (可选,可能需要运行
source /opt/python/run/venv/bin/activate
source /opt/python/current/env
cd /opt/python/current/app
python manage.py <commands>
或者,您可以如下运行命令:
cd /opt/python/current/app
/opt/python/run/venv/bin/python manage.py <command>



