【发布时间】:2018-12-14 06:21:08
【问题描述】:
我在 AWS 上部署了我的 django 应用程序。到目前为止它工作正常,但是当我尝试点击部署在 ec2 实例上的 url 时,它显示任务超时错误。有什么办法可以克服它。
[1556766665330] [DEBUG] 2018-12-14T05:46:25.330Z 98072431-ff63-11e8-97db-
2d7bd216d81f Starting new HTTP connection (1): 1.2.3.4:3000
[1544799995279] 2018-12-14T05:46:55.279Z 98072431-ff63-11e8-97db-2d7bd216d81f
Task timed out after 30.03 seconds
我的 django 应用通过 zappa 部署在 aws 上
【问题讨论】:
-
你检查安全组了吗?
-
@BanjoObayomi 是的,我在 zappa_settings.json 中将安全组设置为 "vpc_config" : { "SubnetIds": [ "subnet-65xxxxxx","subnet-6cxxxxxx" ], "SecurityGroupIds": [“sg-012e8860cxxxxxxxx”]}
标签: django amazon-web-services zappa