Skip to content

Commit 36140a3

Browse files
committed
minor #2245 [Site] Skip yarn & npm install during deploy (smnandre)
This PR was merged into the 2.x branch. Discussion ---------- [Site] Skip yarn & npm install during deploy > 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 Commits ------- 00ae08f [Site] Skip yarn & npm install during deploy
2 parents 33d5cbd + 00ae08f commit 36140a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ux.symfony.com/.platform.app.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ hooks:
4747
4848
curl -s https://get.symfony.com/cloud/configurator | (>&2 bash)
4949
50+
# We don't need to run yarn or npm...
51+
# ...let's skip both build steps
52+
NO_YARN=1
53+
NO_NPM=1
54+
5055
(>&2 symfony-build)
5156
5257
deploy: |
@@ -55,6 +60,7 @@ hooks:
5560
(>&2 symfony-deploy)
5661
5762
php bin/console app:load-data
63+
5864
# needed because StimulusBundle / asset mapper will currently
5965
# expect this asset mapper directory to exist at runtime
6066
mkdir -p var/translations

0 commit comments

Comments
 (0)