Skip to content

Commit 2aaf61f

Browse files
committed
cd: Only use ssr for production environment
1 parent 8efdf90 commit 2aaf61f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ jobs:
171171
npm ci
172172
npm run build:ssr
173173
174-
if pm2 list | grep -q "$PM2_NAME"; then
175-
pm2 restart "$PM2_NAME"
174+
if pm2 list | grep -q production-ssr; then
175+
pm2 restart production-ssr
176176
else
177-
pm2 start bootstrap/ssr/ssr.js --name="$PM2_NAME"
177+
pm2 start bootstrap/ssr/ssr.js --name=production-ssr
178178
fi
179179
180180
php artisan optimize:clear

0 commit comments

Comments
 (0)