Skip to content

Commit

Permalink
fix(devcontainer): composer memory limit #0000
Browse files Browse the repository at this point in the history
Prevent composer install from failing on larger projects where a simple
composer install invocation might use more than the default php memory
configuration.
  • Loading branch information
mhitza committed Jan 8, 2025
1 parent 11999b4 commit af54bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/.devcontainer/postCreate.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ composer config --global --auth http-basic.repo.packagist.com \
"${GITHUB_USER:-$GITHUB_USER_ON_HOST}" "${PACKAGIST_TOKEN:-$PACKAGIST_TOKEN_ON_HOST}"
{% endif %}

composer install
COMPOSER_MEMORY_LIMIT=-1 composer install
{% endif %}

{% if repo.type.startswith('nodejs-') %}
Expand Down

0 comments on commit af54bcb

Please sign in to comment.