简体   繁体   中英

Deploying Flask app on AWS elastic beanstalk

i have been trying to deploy a flask app using EBS. I followed instructions from this link , but at the end i get this . Also is there any way i can ssh into my ebs volume as in other ec2 instances. Here is the link to the aws log . Also as an alternative how can i deploy my app without using ebs?

also my app structure is :

root folder/
              application.py
              requirements.txt
              uploads/
              modules/
                       static/
                       templates/
                       _init_.py
                       views.py
                       daemon_tasker.py
                       queue.py
                       json_play.py
                       find_detail.py

Update

Okay it might seem odd. But when i tried pip installing from requirements.txt in local machine it gives the same error, but if i pip install redis and six before pip installing from requirements.txt then no error is generated. Is there some way i can install redis and six before pip installing requirements.txt, or may be some setup script that can install retask after the pip install requirement.txt is over?

This seems to be the problem in your logs. (You already identified it in the comments it seems).

  File "retask/queue.py", line 32, in <module>

    import redis

ImportError: No module named redis**strong text**

Do you have "redis==2.4.13" (or any other version) in your requirements.txt?

Also you are right that if you want to persist changes on all instances you should use ".ebextensions" config file.

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