Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- next_1 |
- next_1 | > web@0.1.0 prestart-docker /app
- next_1 | > pm2 install typescript && ./node_modules/.bin/pm2 update
- next_1 |
- next_1 |
- next_1 | -------------
- next_1 |
- next_1 | __/\\\\\\\\\\\\\____/\\\\____________/\\\\____/\\\\\\\\\_____
- next_1 | _\/\\\/////////\\\_\/\\\\\\________/\\\\\\__/\\\///////\\\___
- next_1 | _\/\\\_______\/\\\_\/\\\//\\\____/\\\//\\\_\///______\//\\\__
- next_1 | _\/\\\\\\\\\\\\\/__\/\\\\///\\\/\\\/_\/\\\___________/\\\/___
- next_1 | _\/\\\/////////____\/\\\__\///\\\/___\/\\\________/\\\//_____
- next_1 | _\/\\\_____________\/\\\____\///_____\/\\\_____/\\\//________
- next_1 | _\/\\\_____________\/\\\_____________\/\\\___/\\\/___________
- next_1 | _\/\\\_____________\/\\\_____________\/\\\__/\\\\\\\\\\\\\\\_
- next_1 | _\///______________\///______________\///__\///////////////__
- next_1 |
- next_1 |
- next_1 | Runtime Edition
- next_1 |
- next_1 | PM2 is a Production Process Manager for Node.js applications
- next_1 | with a built-in Load Balancer.
- next_1 |
- next_1 | Start and Daemonize any application:
- next_1 | $ pm2 start app.js
- next_1 |
- next_1 | Load Balance 4 instances of api.js:
- next_1 | $ pm2 start api.js -i 4
- next_1 |
- next_1 | Monitor in production:
- next_1 | $ pm2 monitor
- next_1 |
- next_1 | Make pm2 auto-boot at server restart:
- next_1 | $ pm2 startup
- next_1 |
- next_1 | To go further checkout:
- next_1 | http://pm2.io/
- next_1 |
- next_1 |
- next_1 | -------------
- next_1 |
- next_1 | [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
- next_1 | [PM2] This PM2 is not UP TO DATE
- next_1 | [PM2] Upgrade to version 4.2.2
- next_1 | [PM2] PM2 Successfully daemonized
- next_1 | [PM2][Module] Adding dependency typescript to PM2 Runtime
- next_1 | [PM2][Module] Calling [NPM] to install typescript ...
- next_1 | [PM2][Module] Calling [NPM] to install ts-node@latest ...
- next_1 | + ts-node@8.6.2
- next_1 | added 6 packages from 39 contributors, removed 1 package, updated 1 package and audited 16 packages in 2.779s
- next_1 | found 0 vulnerabilities
- next_1 |
- next_1 | [PM2][Module] No configuraton script found.
- next_1 | + typescript@3.7.5
- next_1 | added 2 packages from 36 contributors, removed 1 package, updated 1 package and audited 9 packages in 4.542s
- next_1 | found 0 vulnerabilities
- next_1 |
- next_1 | [PM2][Module] No configuraton script found.
- next_1 | [PM2] typescript ENABLED
- next_1 | [PM2] ts-node@latest ENABLED
- next_1 | ┌─────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
- next_1 | │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
- next_1 | └─────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
- next_1 | Be sure to have the latest version by doing `npm install pm2@latest -g` before doing this procedure.
- next_1 | [PM2] [v] Modules Stopped
- next_1 | [PM2][WARN] No process found
- next_1 | [PM2] [v] All Applications Stopped
- next_1 | [PM2] [v] PM2 Daemon Stopped
- next_1 | [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
- next_1 | [PM2] Restoring processes located in /root/.pm2/dump.pm2
- next_1 | >>>>>>>>>> PM2 updated
- next_1 | ┌─────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
- next_1 | │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
- next_1 | └─────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
- next_1 |
- next_1 | > web@0.1.0 start-docker /app
- next_1 | > pm2 start -i max --attach --env production
- next_1 |
- next_1 | [PM2][WARN] Applications web not running, starting...
- next_1 | [PM2][ERROR] Error: Interpreter /app/node_modules/pm2/node_modules/.bin/ts-node is NOT AVAILABLE in PATH. (type 'which /app/node_modules/pm2/node_modules/.bin/ts-node' to double check.)
- next_1 | npm ERR! code ELIFECYCLE
- next_1 | npm ERR! errno 1
- next_1 | npm ERR! web@0.1.0 start-docker: `pm2 start -i max --attach --env production`
- next_1 | npm ERR! Exit status 1
- next_1 | npm ERR!
- next_1 | npm ERR! Failed at the web@0.1.0 start-docker script.
- next_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
- next_1 |
- next_1 | npm ERR! A complete log of this run can be found in:
- next_1 | npm ERR! /root/.npm/_logs/2020-01-21T01_07_25_063Z-debug.log
- next_1 |
- next_1 | > web@0.1.0 prestart-docker /app
- next_1 | > pm2 install typescript && ./node_modules/.bin/pm2 update
- next_1 |
- next_1 | [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
- next_1 | [PM2] PM2 Successfully daemonized
- next_1 | [PM2][Module] Adding dependency typescript to PM2 Runtime
- next_1 | [PM2][Module] Calling [NPM] to install typescript ...
- next_1 | [PM2][Module] Calling [NPM] to install ts-node@latest ...
- next_1 | + typescript@3.7.5
- next_1 | removed 4 packages, updated 1 package and audited 9 packages in 1.62s
- next_1 | found 0 vulnerabilities
- next_1 |
- next_1 | [PM2][Module] No configuraton script found.
- next_1 | + ts-node@8.6.2
- next_1 | added 1 package from 1 contributor and audited 17 packages in 1.742s
- next_1 | found 0 vulnerabilities
- next_1 |
- next_1 | [PM2][Module] No configuraton script found.
- next_1 | [PM2] typescript ENABLED
- next_1 | [PM2] ts-node@latest ENABLED
- next_1 | ┌─────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
- next_1 | │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
- next_1 | └─────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
- next_1 | Be sure to have the latest version by doing `npm install pm2@latest -g` before doing this procedure.
- next_1 | [PM2] [v] Modules Stopped
- next_1 | [PM2][WARN] No process found
- next_1 | [PM2] [v] All Applications Stopped
- next_1 | [PM2] [v] PM2 Daemon Stopped
- next_1 | [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
- next_1 | [PM2] Restoring processes located in /root/.pm2/dump.pm2
- next_1 | >>>>>>>>>> PM2 updated
- next_1 | ┌─────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
- next_1 | │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
- next_1 | └─────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
- next_1 |
- next_1 | > web@0.1.0 start-docker /app
- next_1 | > pm2 start -i max --attach --env production
- next_1 |
- next_1 | [PM2][WARN] Applications web not running, starting...
- next_1 | [PM2] App [web] launched (1 instances)
- next_1 | ┌─────┬────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
- next_1 | │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
- next_1 | ├─────┼────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
- next_1 | │ 0 │ web │ default │ 0.1.0 │ fork │ 86 │ 0s │ 0 │ online │ 0% │ 26.0mb │ root │ disabled │
- next_1 | └─────┴────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
- next_1 | [PM2][WARN] Current process list running is not in sync with saved list. Type 'pm2 save' to synchronize or enable autosync via 'pm2 set pm2:autodump true'
- next_1 | 0|web | > Read on http://localhost:8000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement