Question: Deployment Best practice for a node.js express app
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hi there,
I am just setting up a web server with nginx and pm2/express, and wonder what is best practice for deployment.
Should I use the integrated deployment feature (which pulls a github repo and runs npm install)
Or shoudl I create a bundle of my app (e.g. using webpack) and just deploy the bundle?
Thanks a lot for your efforts answering my stupid newbee question!
Cheers,
Dietmar
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
No file or test is named. Start by examining PM2's integrated deployment feature and the alternative webpack bundle workflow described in the question; done would require a settled, project-relevant deployment recommendation or documentation update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- express, nginx, node.js, webpack
- Domain
- devops
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100