简体   繁体   中英

Upload to Aws elastic beanstalk

I have a question about how to upload to aws elastic beanstalk

My file structure is blelow:

I have a virtualenv folder.
and I create a folder name project . In project,there are two folders. one is djangoproject (a website) , the other is some python files run scrapy project .

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.

Please teach me how to upload these to AWS EB, is my structure correct? 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. 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. Here is a link to AWS documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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