Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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