Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
node_modules /
pm2 /
Delete
Unzip
Name
Size
Permission
Date
Action
bin
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
lib
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
node_modules
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
types
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
.gitattributes
62
B
-rw-r--r--
2025-04-08 13:05
.mocharc.js
216
B
-rw-r--r--
2025-04-08 13:05
CHANGELOG.md
100.48
KB
-rw-r--r--
2025-04-08 13:05
CONTRIBUTING.md
2.78
KB
-rw-r--r--
2025-04-08 13:05
GNU-AGPL-3.0.txt
33.71
KB
-rw-r--r--
2025-04-08 13:05
LICENSE
17
B
-rw-r--r--
2025-04-08 13:05
README.md
6.48
KB
-rw-r--r--
2025-04-08 13:05
bun.lock
18.76
KB
-rw-r--r--
2025-04-08 13:05
constants.js
4.98
KB
-rw-r--r--
2025-04-08 13:05
index.js
303
B
-rw-r--r--
2025-04-08 13:05
package.json
4.38
KB
-rw-r--r--
2025-04-08 13:05
paths.js
3.38
KB
-rw-r--r--
2025-04-08 13:05
pm2
220
B
-rwxr-xr-x
2025-04-08 13:05
preinstall.js
689
B
-rw-r--r--
2025-04-08 13:05
run.sh
136
B
-rw-r--r--
2025-04-08 13:05
Save
Rename
# Contributing ## Cloning PM2 development ```bash $ git clone https://github.com/Unitech/pm2.git $ cd pm2 $ git checkout development $ npm install ``` I recommend having a pm2 alias pointing to the development version to make it easier to use pm2 development: ``` $ cd pm2/ $ echo "alias pm2='`pwd`/bin/pm2'" >> ~/.bashrc ``` You are now able to use pm2 in dev mode: ``` $ pm2 update $ pm2 ls ``` ## Project structure ``` . ├── bin // pm2, pmd, pm2-dev, pm2-docker are there ├── examples // examples files ├── lib // source files ├── pres // presentation files ├── test // test files └── types // TypeScript definition files ``` ## Modifying the Daemon When you modify the Daemon (lib/Daemon.js, lib/God.js, lib/God/*, lib/Watcher.js), you must restart the pm2 Daemon by doing: ``` $ pm2 update ``` ## Commit rules ### Commit message A good commit message should describe what changed and why. It should : * contain a short description of the change (preferably 50 characters or less) * be entirely in lowercase with the exception of proper nouns, acronyms, and the words that refer to code, like function/variable names * be prefixed with one of the following word * fix : bug fix * hotfix : urgent bug fix * feat : new or updated feature * docs : documentation updates * BREAKING : if commit is a breaking change * refactor : code refactoring (no functional change) * perf : performance improvement * style : UX and display updates * test : tests and CI updates * chore : updates on build, tools, configuration ... * Merge branch : when merging branch * Merge pull request : when merging PR ## Tests There are two tests type. Programmatic and Behavioral. The main test command is `npm test` ### Programmatic Programmatic tests are runned by doing ``` $ bash test/pm2_programmatic_tests.sh ``` This test files are located in test/programmatic/* ### Behavioral Behavioral tests are runned by doing: ``` $ bash test/e2e.sh ``` This test files are located in test/e2e/* ## File of interest - `$HOME/.pm2` contain all PM2 related files - `$HOME/.pm2/logs` contain all applications logs - `$HOME/.pm2/pids` contain all applications pids - `$HOME/.pm2/pm2.log` PM2 logs - `$HOME/.pm2/pm2.pid` PM2 pid - `$HOME/.pm2/rpc.sock` Socket file for remote commands - `$HOME/.pm2/pub.sock` Socket file for publishable events ## Generate changelog ### requirements ``` npm install git-changelog -g ``` ### usage Edit .changelogrc Change "version_name" to the next version to release (example 1.1.2). Change "tag" to the latest existing tag (example 1.1.1). Run the following command into pm2 directory ``` git-changelog ``` It will generate currentTagChangelog.md file. Just copy/paste the result into changelog.md