Last active
September 27, 2017 11:09
-
-
Save etiennemarais/de018d83c242d5abc4bb64a8e41ffd60 to your computer and use it in GitHub Desktop.
Notes about advanced composer
This file contains 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
COMPOSER_TIMEOUT=600 php -d memory_limit=2G path/to/composer.phar $@ |
This file contains 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
# composer_wrapper.sh | |
php -d memory_limit=2G /path/to/composer.phar $@ | |
alias composer='path/to/composer_wrapper.sh' |
This file contains 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
1. Checkout just the composer.* files to the docker build dir | |
2. Run docker build | |
1. Copy just the composer.* files into the build image | |
2. Run composer install with flags | |
3. Copy in source files | |
4. Run composer dump-autoload --optimize |
This file contains 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
# Super GH speed | |
--prefer-dist | |
# Small deployment, ignores dev packages | |
--no-dev | |
# Power | |
--optimize-autoloader or dump-autoload --optimize |
This file contains 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
# Github rate limits api calls | |
composer config -g github-oauth.github.com <token> | |
# Create token at https://github.com/settings/tokens |
This file contains 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
# They fixed it in 1.3.0 | |
composer self-update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment