Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • I information
  • Project information
    • Project information
    • Activity
    • Members
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
Collapse sidebar

webGo Information wiki

  • webGo
  • information
  • Wiki
  • Guides
  • install PM2

Last edited by Martin Lam Nov 09, 2021
Page history

install PM2

Install PM2

PM2 Installer

https://github.com/jessety/pm2-installer

The Following is deprecated and please use the pm2 installer

Copy and paste

Open a command prompt as Administrator

mkdir c:\etc\.pm2
setx PM2_HOME c:\etc\.pm2 /m
npm install pm2 -g
npm install -g pm2-windows-service
npm install -g npm-check-updates
cd %USERPROFILE%\AppData\Roaming\npm\node_modules\pm2-windows-service
ncu inquirer -u
npm install
pm2-service-install -n PM2

Options when installing pm2-windows-service

> Perform environment setup (recommended)? Yes
> Set PM2_HOME? Yes
> PM2_HOME value (this path should be accessible to the service user and
should not contain any “user-context” variables [e.g. %APPDATA%]): c:\etc\.pm2\
> Set PM2_SERVICE_SCRIPTS (the list of start-up scripts for pm2)? No
> Set PM2_SERVICE_PM2_DIR (the location of the global pm2 to use with the service)? [recommended] Yes
> Specify the directory containing the pm2 version to be used by the
service C:\USERS\<USER>\APPDATA\ROAMING\NPM\node_modules\pm2\index.js
PM2 service installed and started.

log rotate

After setup the PM2

pm2 install pm2-logrotate

Reference

  • PM2 Startup on Windows
  • PM2 ecosystem example
Clone repository
  • goFTP
    • notes
    • released apk version
  • goMenu
    • BYOD flow
    • error code UCR integration
    • experimental installation for byod
    • symlink static files list
    • uat environment
  • goPOS
    • clear test data before new shop opening
    • daily clearance run before all transactions processed tenren
    • daily clearance run before all transactions processed
    • missing handle update payment
  • goPick
    • error code table
  • goQueue
    • Components Version Compatibility
    • Features and Compatibility
    • Released APK Version
View All Pages