Skip to content

Commit

Permalink
Add bindmount for static files in production
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshaughnessy committed Nov 7, 2023
1 parent 9fa600c commit 024e60a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ jobs:
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
tar -xzvf /tmp/web-client.tar.gz -C ~/track/server/static/client --strip-components=1
rm /tmp/web-client.tar.gz
ENDSSH
2 changes: 2 additions & 0 deletions docker/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 024e60a

Please sign in to comment.