Created
April 22, 2016 10:51
-
-
Save hemc4/cc1c08737af57d24d028deaa14207627 to your computer and use it in GitHub Desktop.
Yii2 Elastic Beanstalk configration for advance template
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.