Skip to content

Instantly share code, notes, and snippets.

@heshanh
Created December 17, 2019 01:40
Show Gist options
  • Save heshanh/86d00e09033c9a74847ce8f4e6a5a9d4 to your computer and use it in GitHub Desktop.
Save heshanh/86d00e09033c9a74847ce8f4e6a5a9d4 to your computer and use it in GitHub Desktop.
Bedrock & Sage on elasticbeanstalk
commands:
create_post_dir:
command: "mkdir /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/sage.sh":
mode: "000755"
owner: root
group: root
content: |
#!/usr/bin/env bash
cd /var/app/current/web/app/themes/theme-dir
export COMPOSER_HOME=/tmp && /usr/bin/composer.phar self-update
composer.phar install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment