简体   繁体   English

上载到AWS弹性beantalk

[英]Upload to Aws elastic beanstalk

I have a question about how to upload to aws elastic beanstalk 我有一个关于如何上传到AWS Elastic beantalk的问题

My file structure is blelow: 我的文件结构令人沮丧:

I have a virtualenv folder. 我有一个virtualenv文件夹。
and I create a folder name project . 然后创建一个文件夹名称project In project,there are two folders. 在项目中,有两个文件夹。 one is djangoproject (a website) , the other is some python files run scrapy project . 一个是djangoproject(一个网站),另一个是一些运行scrapy project的python文件。

I try upload before.It seems like if I use this method Deploying a Django Application ,I have to upload a pure django project as a root folder,so that the aws can catch my files. 我以前尝试过上传。似乎如果我使用这种方法部署Django应用程序 ,则必须上传一个纯django项目作为根文件夹,以便aws可以捕获我的文件。

Please teach me how to upload these to AWS EB, is my structure correct? 请教我如何将它们上传到AWS EB,我的结构正确吗? or give some good tutorial websites so I can move on. 或提供一些不错的教程网站,以便我继续前进。

> virtualenv 
    >bin
    >include
    >lib
    >doc
    >etc
    > project
        > requirements.txt
        > djangoproject
        > scrapy

I tested the EC2 deployment, so i can't tell for the EB workflow, but you have to upload your Django App, not the entire virtualenv folder. 我测试了EC2部署,因此我无法确定EB工作流程,但是您必须上传Django App,而不是整个virtualenv文件夹。 The better is you use Git, you can host your files on BitBucket witch offers free private repos and then install Git on your EB instance and get it from Git. 更好的是使用Git,您可以将文件托管在BitBucket上,它提供免费的私人存储库,然后在您的EB实例上安装Git并从Git中获取它。 Here is a link to AWS documentation . 这是AWS文档的链接。

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

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