fix: move danangble-fe host port 3000 to free 3003
Port 3000 tren prod da co neura-frontend (Up 2 weeks) giu. Chuyen sang 3003 (da verify FREE), sua health check theo, them log tien trinh cho buoc upload.
This commit is contained in:
parent
1cb1543260
commit
59fc3efca6
2 changed files with 6 additions and 2 deletions
5
.github/workflows/cd.yml
vendored
5
.github/workflows/cd.yml
vendored
|
|
@ -93,8 +93,11 @@ jobs:
|
|||
# thang vao `docker load`, khong can file trung gian.
|
||||
run: |
|
||||
set -euo pipefail
|
||||
echo 'Uploading docker-compose.yml...'
|
||||
tar -cf - docker-compose.yml | ssh prod 'mkdir -p ~/danangble && tar -xf - -C ~/danangble'
|
||||
echo 'Uploading image (~100MB stream, khong co output vai phut la binh thuong)...'
|
||||
docker save danangble-fe:latest | ssh prod 'docker load'
|
||||
echo 'Upload done.'
|
||||
|
||||
- name: Roll out (docker load + compose up)
|
||||
run: |
|
||||
|
|
@ -110,4 +113,4 @@ jobs:
|
|||
|
||||
- name: Health check
|
||||
run: |
|
||||
ssh prod 'curl -fsS -m 10 -o /dev/null -w "fe http_code=%{http_code}\n" http://localhost:3000/'
|
||||
ssh prod 'curl -fsS -m 10 -o /dev/null -w "fe http_code=%{http_code}\n" http://localhost:3003/'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue