Skip to content

Commit 36c158d

Browse files
committed
hotfix: 전체 업데이트 및 러닝 스크립트 추가, cors 에 벨로그 추가
1 parent 1518bfc commit 36c158d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PORT=8080
2-
ALLOWED_ORIGINS="http://localhost,http://localhost:3000,https://myapp.com"
2+
ALLOWED_ORIGINS=http://localhost,http://localhost:3000,http://158.180.72.158,http://velog-dashboard.kro.kr,https://velog-dashboard.kro.kr,http://velog.io,https://velog.io
33
NODE_ENV="development"
44

55
# 토큰 단방향 암호화 전용 핵심 키

run.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# chmod +x run.sh
2+
3+
set -e # 스크립트 실행 중 오류 발생 시 종료
4+
5+
echo "1. 외부 이미지 업데이트 (fe, nginx)..."
6+
docker compose pull fe nginx
7+
8+
echo "2. 로컬 이미지 빌드 (api)..."
9+
docker compose build api
10+
11+
echo "3. 서비스 재시작..."
12+
docker compose up -d
13+
14+
echo "모든 작업이 완료되었습니다!"

0 commit comments

Comments
 (0)