Reputation: 693
I trying deploy basic yii application on Elastic Beanstalk. EB's composer install all packages from composer.json, except BOwer, because, as i understand, bower installed by separate command, like described here: http://www.yiiframework.com/download/
php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta3"
I can create .ebextensions witn config file and install my own composer, and then install bower. But question is it a best-practise? Because EB already have own composer.
Upvotes: 2
Views: 1485
Reputation: 323
commands:
01updateComposer:
command: export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update
02globalrequired:
command: export COMPOSER_HOME=/root && /usr/bin/composer.phar require fxp/composer-asset-plugin:1.0.0-beta4
option_settings:
- namespace: aws:elasticbeanstalk:application:environment
option_name: COMPOSER_HOME
value: /root
finally i found solution. composer global require that mean install xxx package at COMPOSER_HOME. https://getcomposer.org/doc/03-cli.md#composer-home
Upvotes: 2