MCPcopy Create free account
hub / github.com/ShipSecAI/studio / getInstancePort

Function getInstancePort

pm2.config.cjs:273–275  ·  view source on GitHub ↗
(basePort, instance)

Source from the content-addressed store, hash-verified

271
272// Helper to get instance-specific ports
273function getInstancePort(basePort, instance) {
274 return basePort + parseInt(instance) * 100;
275}
276
277// Get env file (use instance-specific if it exists, otherwise fall back to root)
278function resolveEnvFile(appName, instance) {

Callers 1

pm2.config.cjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected