Created
April 21, 2018 10:43
-
-
Save hanhdt/6b7a80f5df076a22fa8f30d4d0344728 to your computer and use it in GitHub Desktop.
Run Yarn install command via AWS Elastic Beanstalk hooks
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
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/pre/101_yarn_packages.sh" : | |
mode: "000775" | |
owner: root | |
group: users | |
content: | | |
#!/usr/bin/env bash | |
app="$(/opt/elasticbeanstalk/bin/get-config container -k app_staging_dir)"; | |
# npm install | |
cd "${app}"; | |
yarn install; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment