From 0493bdf842040c2ecdea833c17d18a825593359f Mon Sep 17 00:00:00 2001 From: Kate Date: Mon, 2 Apr 2018 09:33:08 +0300 Subject: [PATCH] Switch frontend-gifts to yarn on Platform.sh (#17) --- frontend-gifts/.platform.app.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend-gifts/.platform.app.yaml b/frontend-gifts/.platform.app.yaml index 95eb6c8..8345147 100644 --- a/frontend-gifts/.platform.app.yaml +++ b/frontend-gifts/.platform.app.yaml @@ -1,9 +1,13 @@ name: frontend-gifts type: nodejs:8.9 +build: + flavor: none + dependencies: nodejs: pm2: "^2.4.4" + yarn: "*" web: commands: # Run node server in pm2 process manager. Logs will be available in /app/run/logs. @@ -23,7 +27,8 @@ web: hooks: build: | - npm run build:platform + yarn install + yarn run build:platform deploy: | # Copy built files into writable folder to write into index.html on per-environment basis. # This should be refactored once server-side rendering is enabled.