diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 15f5f5e..58f1ae3 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -107,6 +107,15 @@ jobs: echo ${{ secrets.SHEET_PWD }} | gpg --batch --yes --passphrase-fd 0 ./libraries/sheet-crypto.tgz.gpg npm ci + - name: Build frontend for web streaming + # The server-ci target streams client/dist as the 'clickme' web app (see + # CONTRIBUTING.md), so the production build has to exist before the mock + # services are deployed. Without it the deploy logs + # "webSourcePath: .../client/dist ... doesn't exist" and streams no frontend. + run: | + cd client + npm run build + - name: Setup and start SASjs server run: | npm i -g pm2 diff --git a/sas/mocks/sasjs/sasjsconfig.json b/sas/mocks/sasjs/sasjsconfig.json index 8004807..2ccf95b 100644 --- a/sas/mocks/sasjs/sasjsconfig.json +++ b/sas/mocks/sasjs/sasjsconfig.json @@ -14,7 +14,7 @@ "streamConfig": { "streamWeb": true, "streamWebFolder": "web9", - "webSourcePath": "`../../../../client/dist", + "webSourcePath": "../../client/dist", "assetPaths": [], "streamServiceName": "clickme" }