$ git clone
$ cd express-scaffold
$ npm install
$ npm start
$ npm run build
after run npm run build
then exec
$ npm run analyse:server
.
├── /src/ # The source code of the application
│ ├── /config/ # System configuration file by env
│ ├── /core/ # Core module or middleware
│ ├── /models/ # schedme
│ ├── /routes/ # routes define
│ ├── /services/ # services
│ └── /server.js # service start file
├── /tests/ # Unit and end-to-end tests
├── /tools/ # Build automation scripts and utilities
│ ├── /analyse/ # analyse tools for webpack stats
│ ├── /libs/ # Library for build system
│ ├── /webpack/ # Webpack config files
│ ├── /build-server.js # Scripts for build server app
│ ├── /build.js # Scripts for build client and server
│ ├── /clean.js # Cleans up for the output (build) folder
│ ├── /config.js # Build config file
│ ├── /copy.js # Copy package.json, public folder and assets.json
│ ├── /run.js # Helper function for running build automation tasks
│ ├── /start.js # Launches the development web server with "live reload"
│ └── /watch.js # watch public folder, if changed copy files to dist/public folder
└── package.json # npm libraries and utilities
1.打包pm2
2.移动解压移动到 /usr/local/NODE目录/lib/node_modules/
3.
cd /usr/bin
ln -s /usr/local/NODE目录/lib/node_modules/pm2/bin/pm2 pm2