From 23c1725993a7a2ff80f4d6901ddff0e480a97f4f Mon Sep 17 00:00:00 2001 From: Joost van Doremalen Date: Wed, 22 Jun 2022 09:20:13 +0200 Subject: [PATCH] Fix issue 62 --- .platform.app.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.platform.app.yaml b/.platform.app.yaml index dc8092af..08c50db1 100644 --- a/.platform.app.yaml +++ b/.platform.app.yaml @@ -8,7 +8,7 @@ type: 'nodejs:14' dependencies: nodejs: - yarn: "^1.22.0" + yarn: '^1.22.0' # The hooks that will be triggered when the package is deployed. hooks: @@ -27,6 +27,9 @@ hooks: deploy: | # Move committed files from temp directory back into mounts. ./handle_mounts.sh + # On consecutive builds the server was already started before the new files were copied, + # so kill the process so that it automatically restarts with the new files + kill -9 $(lsof -t -i:$PORT) # The configuration of the application when it is exposed to the web. web: @@ -44,7 +47,7 @@ mounts: source_path: 'next' source: - operations: - auto-update: - command: | - curl -fsS https://raw.githubusercontent.com/platformsh/source-operations/main/setup.sh | { bash /dev/fd/3 sop-autoupdate; } 3<&0 + operations: + auto-update: + command: | + curl -fsS https://raw.githubusercontent.com/platformsh/source-operations/main/setup.sh | { bash /dev/fd/3 sop-autoupdate; } 3<&0