We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e420e00 commit d731967Copy full SHA for d731967
1 file changed
.github/workflows/deploy.yml
@@ -170,19 +170,17 @@ jobs:
170
fi
171
172
CONFIG_FILE="ecosystem.staging.config.js"
173
- echo "config file set: \${CONFIG_FILE}"
174
BACKEND_NAME="${{ secrets.PM2_BACKEND_NAME }}"
175
- echo "backend name set: \${BACKEND_NAME}"
176
FRONTEND_NAME="${{ secrets.PM2_FRONTEND_NAME }}"
177
- echo "frontend name set: \${FRONTEND_NAME}"
178
179
# Function to check if a PM2 process exists
180
process_exists() {
181
pm2 jlist 2>/dev/null | grep -q "\"name\":\"\\$1\""
182
}
183
184
# Handle backend process
185
- if process_exists "\${BACKEND_NAME}"; then
+ #if process_exists "\${BACKEND_NAME}"; then
+ if process_exists "codeframe-staging-backend"; then
186
echo "♻️ Restarting \${BACKEND_NAME}..."
187
pm2 restart "\${BACKEND_NAME}"
188
else
0 commit comments