Skip to content

Instantly share code, notes, and snippets.

@hemc4
Created April 22, 2016 10:51
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hemc4/cc1c08737af57d24d028deaa14207627 to your computer and use it in GitHub Desktop.
Save hemc4/cc1c08737af57d24d028deaa14207627 to your computer and use it in GitHub Desktop.
Yii2 Elastic Beanstalk configration for advance template
commands:
01cacheClear:
command: rm -rf ~/.composer
02updateComposer:
command: export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update 1.0.0-alpha11
03globalrequired:
command: export COMPOSER_HOME=/root && /usr/bin/composer.phar global require fxp/composer-asset-plugin:1.1.3
option_settings:
- namespace: aws:elasticbeanstalk:application:environment
option_name: COMPOSER_HOME
value: "/root"
container_commands:
01createfolders:
command: php init --env=Development --overwrite=None
02removeVendor:
command: rm -rf vendor/* && rm composer.lock
03createVendor:
command: /usr/bin/composer.phar install
@ctala
Copy link

ctala commented Aug 23, 2016

Does it work for you ? It seems that for me the container commands are working perfectly but the commands are not. It stills fails on the composer install due that the fxp library is not being added before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment