Forked from lettergram/fix_elasticbeanstalk_for_rails6.config
Created
May 5, 2022 03:44
-
-
Save iiewad/35edf0a6b4d7b6ba7915df9fa65e41eb to your computer and use it in GitHub Desktop.
ebextension to enable rails 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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