Nodefony Microservice

Microservice Environment

Interactive Run
$ npm start
$ node ./bin/cli

                                  _           __                                                               _
              _ __     ___     __| |   ___   / _|   ___    _ __    _   _           ___    ___   _ __  __   __ (_)   ___    ___
             | '_ \   / _ \   / _` |  / _ \ | |_   / _ \  | '_ \  | | | |  _____  / __|  / _ \ | '__| \ \ / / | |  / __|  / _ \
             | | | | | (_) | | (_| | |  __/ |  _| | (_) | | | | | | |_| | |_____| \__ \ |  __/ | |     \ V /  | | | (__  |  __/
             |_| |_|  \___/   \__,_|  \___| |_|    \___/  |_| |_|  \__, |         |___/  \___| |_|      \_/   |_|  \___|  \___|
                                                                   |___/


          Version : 1.0.0   Platform : darwin   Process : nodefony-service   Pid : 214

? CLI (Use arrow keys)
❯ Development
  Production
  Pm2
  Build
  Test
  Quit

      

Nodefony Microservice

Microservice Environment

Developement
$ npm run dev

 > nodefony-service@1.0.0 dev /Users/cci/repository/test/nodefony-service
 > env-cmd -e development pm2 start config/pm2.config.js --env development --no-daemon

 pm2 launched in no-daemon mode (you can add DEBUG="*" env variable to get more messages)
 2020-03-05T17:12:18: PM2 log: Launching in no daemon mode
 2020-03-05T17:12:18: PM2 log: [PM2][WARN] Applications nodefony-service not running, starting...
 2020-03-05T17:12:18: PM2 log: [PM2][WARN] Environment [development] is not defined in process file
 2020-03-05T17:12:18: PM2 log: [Watch] Start watching nodefony-service
 2020-03-05T17:12:18: PM2 log: App [nodefony-service:0] starting in -fork mode-
 2020-03-05T17:12:18: PM2 log: App [nodefony-service:0] online
 2020-03-05T17:12:18: PM2 log: [PM2] App [nodefony-service] launched (1 instances)
 2020-03-05T17:12:18: PM2 log:
 ┌─────┬─────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
 │ id  │ name                │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
 ├─────┼─────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
 │ 0   │ nodefony-service    │ default     │ 1.0.0   │ fork    │ 329      │ 0s     │ 0    │ online    │ 0%       │ 14.3mb   │ cci      │ enabled  │
 └─────┴─────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
 2020-03-05T17:12:18: PM2 log: [PM2][WARN] Current process list running is not in sync with saved list. cci differs. Type 'pm2 save' to synchronize.
 2020-03-05T17:12:18: PM2 log: [--no-daemon] Continue to stream logs
 2020-03-05T17:12:18: PM2 log: [--no-daemon] Exit on target PM2 exit pid=328


      

Nodefony Microservice

Microservice Environment

Production
$ npm run prod

> nodefony-service@1.0.0 prod /Users/cci/repository/test/nodefony-service
> env-cmd -e production pm2 start config/pm2.config.js --env production

[PM2] Spawning PM2 daemon with pm2_home=/Users/cci/.pm2
[PM2] PM2 Successfully daemonized
[PM2][WARN] Applications nodefony-service not running, starting...
[PM2] App [nodefony-service] launched (8 instances)
┌─────┬─────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id  │ name                │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├─────┼─────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 368      │ 0s     │ 0    │ online    │ 0%       │ 42.0mb   │ cci      │ disabled │
│ 1   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 373      │ 0s     │ 0    │ online    │ 0%       │ 41.8mb   │ cci      │ disabled │
│ 2   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 374      │ 0s     │ 0    │ online    │ 0%       │ 36.9mb   │ cci      │ disabled │
│ 3   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 378      │ 0s     │ 0    │ online    │ 0%       │ 33.1mb   │ cci      │ disabled │
│ 4   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 382      │ 0s     │ 0    │ online    │ 0%       │ 25.7mb   │ cci      │ disabled │
│ 5   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 398      │ 0s     │ 0    │ online    │ 0%       │ 26.8mb   │ cci      │ disabled │
│ 6   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 403      │ 0s     │ 0    │ online    │ 0%       │ 23.2mb   │ cci      │ disabled │
│ 7   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 412      │ 0s     │ 0    │ online    │ 0%       │ 23.1mb   │ cci      │ disabled │
└─────┴─────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
[PM2][WARN] Current process list running is not in sync with saved list. cci differs. Type 'pm2 save' to synchronize.