# Production deployment:  PM2 not restarting automatically when deploying Node.js staging to production

**Project:** Sites | **Board:** Live | **Votes:** 2
**Tags:** {"en": "low"}
**URL:** https://roadmap.ploi.io/projects/2-site-level-requests/items/491-production-deployment-auto-restart-pm2-after-deploying-staging-to-production

---

 I have encountered an issue while deploying a Node.js staging environment to production. The PM2 process is not restarting automatically after the deployment, which requires manual intervention to restart the application.

**Expected behavior:**

PM2 should automatically restart the application after the staging environment has been deployed to production.

**Actual behavior:**

PM2 does not restart the application automatically after deployment, requiring manual intervention to restart the process.


**Current workaround:**

Manually adding restart command

```
# find pm2sitename on server with pm2 list
pm2 restart pms2sitenamecom
```

---

## Comments

**Dennis** (2023-03-07T15:46:02+00:00):
[@Nathangeerinck](/user/Nathangeerinck) It seems this checkbox is already available to restart PM2, normal deployments have this, but for some reason the production sites doesn't actually reload.

**fouteox** (2023-03-08T19:25:05+00:00):
Hello, when I deploy an application (Remix) to production from the Deployment button in Ploi, pm2 doesn't restart automatically even though the checkbox is checked. Is this a bug? I have completed the actions with pm2 startup.

