From 88b767f5baba0682ea4dee9bf9d34e4ba5313855 Mon Sep 17 00:00:00 2001 From: John Shaughnessy Date: Tue, 7 Nov 2023 12:38:27 -0500 Subject: [PATCH] Add bindmount for static files in production --- .github/workflows/deploy-client.yml | 4 ++-- docker/prod.yml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-client.yml b/.github/workflows/deploy-client.yml index 2a67cad..9924292 100644 --- a/.github/workflows/deploy-client.yml +++ b/.github/workflows/deploy-client.yml @@ -69,7 +69,7 @@ jobs: - name: Replace static files on server run: | ssh -i ~/.ssh/id_rsa ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} 'bash -s' << 'ENDSSH' - mkdir -p /track/server/static/client - tar -xzvf /tmp/web-client.tar.gz -C /track/server/static/client --strip-components=1 + mkdir -p ~/track/server/static/client + tar -xzvf /tmp/web-client.tar.gz -C ~/track/server/static/client --strip-components=1 rm /tmp/web-client.tar.gz ENDSSH diff --git a/docker/prod.yml b/docker/prod.yml index 04a924e..7b45b44 100644 --- a/docker/prod.yml +++ b/docker/prod.yml @@ -2,3 +2,5 @@ version: "3.1" services: track-server: image: us-central1-docker.pkg.dev/hubs-dev-333333/ocho-osai/johnshaughnessy/track/track-server + volumes: + - track:/track