Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save iiewad/35edf0a6b4d7b6ba7915df9fa65e41eb to your computer and use it in GitHub Desktop.

Select an option

Save iiewad/35edf0a6b4d7b6ba7915df9fa65e41eb to your computer and use it in GitHub Desktop.
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 inst\
all 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_precompile:
command: bundle exec rails assets:precompile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment