Skip to content

Commit 510441d

Browse files
hendisantikaclaude
andcommitted
fix: create app directory on server before SCP
The ~/jvmid-bot directory may not exist on the server yet, so create it (with data/ subdirectory) before copying docker-compose.prod.yml. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 269478d commit 510441d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/deploy-dev.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ jobs:
5252
echo "${{ secrets.DEV_SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
5353
chmod 644 ~/.ssh/known_hosts
5454
55+
- name: Create app directory on server
56+
run: |
57+
ssh deployer@103.31.204.189 'mkdir -p ~/jvmid-bot/data'
58+
5559
- name: Copy docker-compose.prod.yml to server
5660
run: |
5761
scp docker-compose.prod.yml deployer@103.31.204.189:~/jvmid-bot/docker-compose.prod.yml

0 commit comments

Comments
 (0)