Skip to content

scillidan/PM2-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PM2-demo

CC BY 4.0

Some web applications and tools I found andcollected. Mainly used on localhost. I plan to use PM2 to manage someone of them.
And I used fnm, default Node.js version is 18.15.0.

See table.md. I recommend using Imagus to preview small picture or link.

Start

See links on Reference and *.md such as reference.md.

after pm2 start ..., if you want to save app:

gsudo pm2 save

Then, set pm2 to run automatically at startup. On Windows10, you need:

scoop install gsudo
git clone https://github.com/jessety/pm2-installer
cd pm2-installer
gsudo npm run configure
gsudo npm run setup

Windows → Control Panel → Administrative Tools > Services → PM2 → Properties → Log On → local system account → Go back to first tab → Start

If you want to start multiple app with ecosystem.config.js, create ecosystem.config.js and edit. I didn't use this way:

{
	"apps": [
		{
			"name": "regexr",
			"interpreter": "C:\\Users\\yourname\\AppData\\Roaming\\fnm\\node-versions\\v10.21.0\\installation\\node.exe",
			"script": "C:\\Users\\yourname\\AppData\\Roaming\\pnpm\\global\\5\\.pnpm\\[email protected]\\node_modules\\gulp-cli\\bin\\gulp.js"
		},
		{
			...
		},
		...
	]
}

Then pm2 start.

Reference

Troubleshooted

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published