Hot Code Swap
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
Would hot code swapping ever work with pm2?
I'm aware that pm2 has the --watch command, but this restarts the server and kills existing connections. I need to deploy my changes without affecting users.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing PM2's process-reload behavior and the documented --watch command, focusing on how restarts affect existing connections. Determine whether hot code swapping is feasible within PM2's process model and define what deployment behavior would count as preserving users' connections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- devops, release
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100