Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.56 KB | None | 0 0
  1. next_1 |
  2. next_1 | > web@0.1.0 prestart-docker /app
  3. next_1 | > pm2 install typescript && ./node_modules/.bin/pm2 update
  4. next_1 |
  5. next_1 |
  6. next_1 | -------------
  7. next_1 |
  8. next_1 | __/\\\\\\\\\\\\\____/\\\\____________/\\\\____/\\\\\\\\\_____
  9. next_1 | _\/\\\/////////\\\_\/\\\\\\________/\\\\\\__/\\\///////\\\___
  10. next_1 | _\/\\\_______\/\\\_\/\\\//\\\____/\\\//\\\_\///______\//\\\__
  11. next_1 | _\/\\\\\\\\\\\\\/__\/\\\\///\\\/\\\/_\/\\\___________/\\\/___
  12. next_1 | _\/\\\/////////____\/\\\__\///\\\/___\/\\\________/\\\//_____
  13. next_1 | _\/\\\_____________\/\\\____\///_____\/\\\_____/\\\//________
  14. next_1 | _\/\\\_____________\/\\\_____________\/\\\___/\\\/___________
  15. next_1 | _\/\\\_____________\/\\\_____________\/\\\__/\\\\\\\\\\\\\\\_
  16. next_1 | _\///______________\///______________\///__\///////////////__
  17. next_1 |
  18. next_1 |
  19. next_1 | Runtime Edition
  20. next_1 |
  21. next_1 | PM2 is a Production Process Manager for Node.js applications
  22. next_1 | with a built-in Load Balancer.
  23. next_1 |
  24. next_1 | Start and Daemonize any application:
  25. next_1 | $ pm2 start app.js
  26. next_1 |
  27. next_1 | Load Balance 4 instances of api.js:
  28. next_1 | $ pm2 start api.js -i 4
  29. next_1 |
  30. next_1 | Monitor in production:
  31. next_1 | $ pm2 monitor
  32. next_1 |
  33. next_1 | Make pm2 auto-boot at server restart:
  34. next_1 | $ pm2 startup
  35. next_1 |
  36. next_1 | To go further checkout:
  37. next_1 | http://pm2.io/
  38. next_1 |
  39. next_1 |
  40. next_1 | -------------
  41. next_1 |
  42. next_1 | [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
  43. next_1 | [PM2] This PM2 is not UP TO DATE
  44. next_1 | [PM2] Upgrade to version 4.2.2
  45. next_1 | [PM2] PM2 Successfully daemonized
  46. next_1 | [PM2][Module] Adding dependency typescript to PM2 Runtime
  47. next_1 | [PM2][Module] Calling [NPM] to install typescript ...
  48. next_1 | [PM2][Module] Calling [NPM] to install ts-node@latest ...
  49. next_1 | + ts-node@8.6.2
  50. next_1 | added 6 packages from 39 contributors, removed 1 package, updated 1 package and audited 16 packages in 2.779s
  51. next_1 | found 0 vulnerabilities
  52. next_1 |
  53. next_1 | [PM2][Module] No configuraton script found.
  54. next_1 | + typescript@3.7.5
  55. next_1 | added 2 packages from 36 contributors, removed 1 package, updated 1 package and audited 9 packages in 4.542s
  56. next_1 | found 0 vulnerabilities
  57. next_1 |
  58. next_1 | [PM2][Module] No configuraton script found.
  59. next_1 | [PM2] typescript ENABLED
  60. next_1 | [PM2] ts-node@latest ENABLED
  61. next_1 | ┌─────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
  62. next_1 | │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
  63. next_1 | └─────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
  64. next_1 | Be sure to have the latest version by doing `npm install pm2@latest -g` before doing this procedure.
  65. next_1 | [PM2] [v] Modules Stopped
  66. next_1 | [PM2][WARN] No process found
  67. next_1 | [PM2] [v] All Applications Stopped
  68. next_1 | [PM2] [v] PM2 Daemon Stopped
  69. next_1 | [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
  70. next_1 | [PM2] Restoring processes located in /root/.pm2/dump.pm2
  71. next_1 | >>>>>>>>>> PM2 updated
  72. next_1 | ┌─────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
  73. next_1 | │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
  74. next_1 | └─────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
  75. next_1 |
  76. next_1 | > web@0.1.0 start-docker /app
  77. next_1 | > pm2 start -i max --attach --env production
  78. next_1 |
  79. next_1 | [PM2][WARN] Applications web not running, starting...
  80. 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.)
  81. next_1 | npm ERR! code ELIFECYCLE
  82. next_1 | npm ERR! errno 1
  83. next_1 | npm ERR! web@0.1.0 start-docker: `pm2 start -i max --attach --env production`
  84. next_1 | npm ERR! Exit status 1
  85. next_1 | npm ERR!
  86. next_1 | npm ERR! Failed at the web@0.1.0 start-docker script.
  87. next_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  88. next_1 |
  89. next_1 | npm ERR! A complete log of this run can be found in:
  90. next_1 | npm ERR! /root/.npm/_logs/2020-01-21T01_07_25_063Z-debug.log
  91. next_1 |
  92. next_1 | > web@0.1.0 prestart-docker /app
  93. next_1 | > pm2 install typescript && ./node_modules/.bin/pm2 update
  94. next_1 |
  95. next_1 | [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
  96. next_1 | [PM2] PM2 Successfully daemonized
  97. next_1 | [PM2][Module] Adding dependency typescript to PM2 Runtime
  98. next_1 | [PM2][Module] Calling [NPM] to install typescript ...
  99. next_1 | [PM2][Module] Calling [NPM] to install ts-node@latest ...
  100. next_1 | + typescript@3.7.5
  101. next_1 | removed 4 packages, updated 1 package and audited 9 packages in 1.62s
  102. next_1 | found 0 vulnerabilities
  103. next_1 |
  104. next_1 | [PM2][Module] No configuraton script found.
  105. next_1 | + ts-node@8.6.2
  106. next_1 | added 1 package from 1 contributor and audited 17 packages in 1.742s
  107. next_1 | found 0 vulnerabilities
  108. next_1 |
  109. next_1 | [PM2][Module] No configuraton script found.
  110. next_1 | [PM2] typescript ENABLED
  111. next_1 | [PM2] ts-node@latest ENABLED
  112. next_1 | ┌─────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
  113. next_1 | │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
  114. next_1 | └─────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
  115. next_1 | Be sure to have the latest version by doing `npm install pm2@latest -g` before doing this procedure.
  116. next_1 | [PM2] [v] Modules Stopped
  117. next_1 | [PM2][WARN] No process found
  118. next_1 | [PM2] [v] All Applications Stopped
  119. next_1 | [PM2] [v] PM2 Daemon Stopped
  120. next_1 | [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
  121. next_1 | [PM2] Restoring processes located in /root/.pm2/dump.pm2
  122. next_1 | >>>>>>>>>> PM2 updated
  123. next_1 | ┌─────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
  124. next_1 | │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
  125. next_1 | └─────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
  126. next_1 |
  127. next_1 | > web@0.1.0 start-docker /app
  128. next_1 | > pm2 start -i max --attach --env production
  129. next_1 |
  130. next_1 | [PM2][WARN] Applications web not running, starting...
  131. next_1 | [PM2] App [web] launched (1 instances)
  132. next_1 | ┌─────┬────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
  133. next_1 | │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
  134. next_1 | ├─────┼────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
  135. next_1 | │ 0 │ web │ default │ 0.1.0 │ fork │ 86 │ 0s │ 0 │ online │ 0% │ 26.0mb │ root │ disabled │
  136. next_1 | └─────┴────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
  137. 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'
  138. next_1 | 0|web | > Read on http://localhost:8000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement