# .ebextensions/swap.config
commands:
000_swap:
ignoreErrors: true
test: test ! -f /swapfile
command: dd if=/dev/zero of=/swapfile bs=1M count=4096 && mkswap /swapfile && swapon /swapfilesudo curl --silent --location https://rpm.nodesource.com/setup_14.x | sudo bash - sudo yum -y install nodejs sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo sudo yum -y install yarn
RAILS_ENV=production bundle exec rake assets:precompile