Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is ElasticBeanstalk ignoring my .ebignore file?

I'm trying to prevent my static files from being included in the source bundle uploaded with elasticbeanstalk. I'm not sure where exactly my .ebignore file belongs.

Main_Direction
 /.ebextension
 /.elasticbeanstalk
 /Actual_Project
   //....

I put the .ebignore file in the Actual_Project directory. However, this doesn't seem to work because I'm getting the following error.

ERROR: Application version cannot be any larger than 512MB 

My .ebignore file is very simple:

static/*

I've also tried static without the asterix and trailing slash.

I'm using: EB CLI 3.6.2 (Python 3.4.3)

like image 658
arbz101 Avatar asked Oct 21 '25 05:10

arbz101


1 Answers

seems like your directory structure is a bit off. the beanstalk files belong in the root directory of your project, which in your case is Actual_Project. Move them there. As a side note, I use .gitignore instead of .ebignore, as beanstalk will use it if .ebignore is missing. It too belongs to the root dir (right next to the .git folder)

like image 56
Tal Avatar answered Oct 23 '25 19:10

Tal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!