So my application installs and deploys fine as long as I put it on an instance bigger than micro.
when I deploy on micro when composer tries to install I get a php error about not being able to allocate enough memory. so I did some googling and it seems that you can create a swap file/disk on boot/ creating of the instance here are two tutorials one two
these might be dated so first question is can this still be done?
Second question is how do I create a .ebextensions file to make this happen on deploy?
Here is my attempt but its not working unsurprisingly enough as I know very little about this.
commands:
command:dd if=/dev/zero of=/swapfile bs=1M count=3072
command:mkswap /swapfile
command:swapon /swapfile