Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ebextension to enable rails 6
commands:
01_install_yarn:
command: "sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo && curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash - && sudo yum install yarn -y"
02_download_nodejs:
command: curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
03_install_nodejs:
command: yum -y install nodejs
04_mkdir_webapp_dir:
command: mkdir /home/webapp
ignoreErrors: true
05_chown_webapp_dir:
command: chown webapp:webapp /home/webapp
ignoreErrors: true
06_chmod_webapp_dir:
command: chmod 700 /home/webapp
ignoreErrors: true
07_update_bundler:
command: gem update bundler
ignoreErrors: true
container_commands:
08_install_webpack:
command: npm install --save-dev webpack
09_precompile:
command: bundle exec rake assets:precompile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.