Skip to content

Commit 0eef1b5

Browse files
committed
Fix deployment issues
1 parent c0c5d1c commit 0eef1b5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.deployment/dip.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interaction:
1414

1515
provision:
1616
- dip build
17-
- dip up -d redis
18-
- dip up -d backend
17+
- dip compose --compatibility up -d redis
18+
- dip compose --compatibility up -d backend
1919
- dip backend_wait
20-
- dip up -d
20+
- dip compose --compatibility up -d

.deployment/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
frontend:
55
build: ../frontend
66
environment:
7-
- BACKEND_URL=http://localhost:8888
7+
- BACKEND_URL=http://${BACKEND_HOST}:8888
88
ports:
99
- "8000:80"
1010

Jenkinsfile-deployment

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ pipeline{
1414
echo "Deploying to ${target}"
1515
sh """
1616
rsync --delete -rzhe "ssh -o StrictHostKeyChecking=no" ./ root@${target_host}:/app/
17-
ssh -o StrictHostKeyChecking=no root@${target_host} 'cd /app/.deployment; dip provision'
17+
ssh -o StrictHostKeyChecking=no root@${target_host} 'export BACKEND_HOST=${target_host}; cd /app/.deployment; dip provision'
1818
"""
19-
sh "timeout 120 wget --retry-connrefused --tries=120 --waitretry=1 -q http://${target_host}:80808888/instances -O /dev/null"
19+
sh "timeout 120 wget --retry-connrefused --tries=120 --waitretry=1 -q http://${target_host}:8888/instances -O /dev/null"
2020
}
2121
}
2222
}

0 commit comments

Comments
 (0)