简体   繁体   English

在AWS Elastic Beanstalk上部署python Web服务器

[英]Deploy python web server on AWS Elastic Beanstalk

I'm deploying an python web server on AWS now and I have a some question about it. 我现在正在AWS上部署python Web服务器,对此有一些疑问。 I'm using websocket to communicate between back end and front end. 我正在使用websocket在后端和前端之间进行通信。

  1. Do I have to use framework like django or flask? 我必须使用Django或flask之类的框架吗?
  2. If not, where should I put the index.html file? 如果没有,应该将index.html文件放在哪里? in other word, after deploying, how do AWS know the default page of my application? 换句话说,在部署之后,AWS如何知道应用程序的默认页面?

Thanks in advance. 提前致谢。

AWS doesn't "know" anything about your content. AWS不“了解”您的内容。 The webserver that you install will be configured to point to the "root" directory in which index.html (or something equivalent) should be. 您安装的Web服务器将配置为指向应该在其中index.html(或类似名称)的“根”目录。

Since it depends on which webserver (django, flask, Jinja etc) you install - you should lookup its documentation! 由于它取决于您安装的Web服务器(django,flask,Jinja等)-您应该查找其文档!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM