Skip to content

Commit

Permalink
[Site] Skip yarn & npm install during deploy
Browse files Browse the repository at this point in the history
> To disable the JavaScript dependencies and asset building, set NO_NPM or NO_YARN to 1 depending on your package manager.

cf https://docs.platform.sh/guides/symfony/integration.html#symfony-build
  • Loading branch information
smnandre committed Oct 6, 2024
1 parent 8a73cf1 commit a785959
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ux.symfony.com/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ hooks:
curl -s https://get.symfony.com/cloud/configurator | (>&2 bash)
# We don't need to run yarn or npm...
# ...let's skip both build steps
NO_YARN=1
NO_NPM=1
(>&2 symfony-build)
deploy: |
Expand All @@ -55,6 +60,7 @@ hooks:
(>&2 symfony-deploy)
php bin/console app:load-data
# needed because StimulusBundle / asset mapper will currently
# expect this asset mapper directory to exist at runtime
mkdir -p var/translations

0 comments on commit a785959

Please sign in to comment.