Skip to content

Commit 63ed777

Browse files
authored
Merge pull request #133 from Soohyuniii/fix/production-mode
fix: ci 설정
2 parents 4517eff + b5f4dd9 commit 63ed777

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,8 @@ jobs:
5252
sudo docker stop embitips_front || true
5353
sudo docker rm embitips_front || true
5454
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/embitips_front
55-
sudo docker run -d -p 3000:3000 --name embitips_front ${{ secrets.DOCKER_USERNAME }}/embitips_front
55+
sudo docker run -d -p 3000:3000 --name embitips_front \
56+
-e NODE_ENV=production \
57+
-e VITE_MODE=production \
58+
${{ secrets.DOCKER_USERNAME }}/embitips_front
5659
sudo docker image prune -f

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite --mode development",
8-
"build": "vite build --mode production",
8+
"build": "vite build",
99
"lint": "eslint .",
1010
"preview": "vite preview",
1111
"start": "vite --port 3000"

0 commit comments

Comments
 (0)