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 b7da70f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 b7da70f

Please sign in to comment.