Unitech / Unitech/pm2

Question: Deployment Best practice for a node.js express app

Open
#4,938 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.