Skip to content

aboldguess/NPMManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PM2 Frontend

This project provides a small PySide6 GUI for working with the PM2 process manager. It allows you to keep a list of Node.js application folders and start them with pm2 on a chosen port.

Configuration file

Projects are stored in projects.json:

{
  "projects": [
    {
      "path": "/path/to/app",
      "port": 3000,
      "name": "my-app",
      "env": {
        "DEBUG": "1",
        "SECRET": "value"
      }
    }
  ]
}

Each entry defines the folder containing the Node.js project, the port to use when starting it, an optional custom PM2 process name and an optional env object with additional environment variables that will be passed to the process when launched.

Setup

Run install.ps1 on Windows or install the dependencies manually:

python -m pip install -r requirements.txt

PM2 must also be installed globally:

npm install -g pm2

If pm2 isn't found after installation, ensure that the global npm binaries directory (for example %APPDATA%\npm on Windows) is included in your PATH environment variable and restart the terminal. The application checks for pm2 on startup and before running or stopping projects. If it is missing you will see a clear error message explaining how to install it.

Usage

Launch the GUI with:

python manager.py

For every configured project you can:

  • Update – run git pull origin main inside the project directory.
  • Run – start the project with pm2 using npm start and the selected port.
  • Stop – stop the running PM2 process.
  • Change Name – set a custom name for the PM2 process.
  • Edit Env – configure additional environment variables.

Projects can be added either from the File menu or using the Add Project button. When adding a project you will be prompted for environment variables in KEY=VALUE format. The project list now resides in a scrollable area so large setups remain usable.

Use the Clear Log action from the menu or the button next to the log output to quickly empty the log display.

The application requires a graphical environment capable of running Qt applications.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors