[英]How to run flask CLI command in AWS Elastic Beanstalk
我的 flask 服务器在 AWS Elastic Beanstalk 中运行,但是,我想运行我的存储库的commands.py文件中列出的一些自定义 flask CLI 命令。 Previously when my server was hosted in Heroku, I was able to run these commands through the Heroku console, however I'm unable to figure out how to run these commands in Elastic Beanstalk or even go inside of the beanstalk environment and run my custom flask通过命令行命令。
我尝试使用eb cli ,但这似乎只允许我主要部署、终止、打开 Elastic Beanstalk 环境,但eb cli中的任何内容似乎都不允许我在环境中运行flask --help
甚至豆茎环境里面的go
如果您使用 eb cli,那么它将eb ssh
到 ssh 到您的实例中。
我无法弄清楚如何在 Elastic Beanstalk 中运行这些命令
通常,您会使用命令或container_commands创建.ebextentions配置文件来运行实际的 flask 命令。
还有其他选项,例如平台挂钩。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.