Skip to content

Instantly share code, notes, and snippets.

@hanhdt
Created April 21, 2018 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanhdt/6b7a80f5df076a22fa8f30d4d0344728 to your computer and use it in GitHub Desktop.
Save hanhdt/6b7a80f5df076a22fa8f30d4d0344728 to your computer and use it in GitHub Desktop.
Run Yarn install command via AWS Elastic Beanstalk hooks
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