Skip to main content
psys can run in two modes: development mode for local testing with hot reload, or production mode for optimized performance.

Development Mode

Development mode runs with hot reload and debugging tools enabled.
1

Install dependencies

npm install
2

Start the development server

npm run dev
This runs next dev --turbopack which starts the Next.js development server with Turbopack for faster builds.
3

Access the application

Open http://localhost:3000 in your browser.The page automatically polls /api/connections every 5 seconds to refresh process data.
Development mode is ideal for making changes and testing features, but should not be used in production environments.

Production Mode

Production mode compiles and optimizes the application for better performance.
1

Build the application

npm run build
This runs next build to create an optimized production bundle.
2

Start the production server

npm start
This runs next start which serves the production build.
3

Access the application

The production server runs on port 3000 by default.Open http://localhost:3000 in your browser.

Port Configuration

npm run dev
# Runs on http://localhost:3000
For background production mode with a custom port, see Production Setup.

Available Scripts

ScriptCommandDescription
devnext dev --turbopackStart development server with Turbopack
buildnext buildBuild optimized production bundle
startnext startStart production server
start:bgnohup next start -p 30999 > /dev/null 2>&1 &Start production server in background on port 30999
lintESLINT_USE_FLAT_CONFIG=false next lintRun ESLint code linting