ARTICLE AD BOX
This is a common problem for people who are new to AWS Elastic Beanstalk. And this is my favourite question during my previous work time with AWS Support.
The answer is quite simple. When you zip your source code, you need to zip the "content of the folder". Do not zip the folder itself.
If you zip the folder, when it got extracted by Elastic Beanstalk agent, you will get the additional folder as you have experienced.
If you zip the "content of the folder", it will be extracted correctly at the target location as expected.
/home/user/code <-- do not zip from this folder - index.html \ - image.png } <-- only zip this content, without the folder - favicon.ico /can you provide more information about how did you created the zip file?
It seems that when your zip file is unzipped it contains additional folder which is zipfilename in your case.
You can solve this by zipping like this:
# go to your application folder cd ruby-app-folder # zip everything recursively and create app.zip in parent folder zip -r ../app.zip ./* # go back to folder where the zip is created cd ..Then when you deploy through "Upload application version" the application should be unzipped correctly.
Can you try that and confirm my assumptions?
5622 gold badges8 silver badges26 bronze badges
Explore related questions
See similar questions with these tags.
