Articles tagged in: PM2



PM2 — Use TSX to Start Your App

We migrated the code running the superchargejs.com website from CommonJS to ESM. The CommonJS project used ts-node in combination with SWC to run the code. But ts-node isn’t working with TypeScript and ESM (there’s an open issue). We can’t use ts-node because of the mentioned issue …

Continue Reading

PM2 — Using Bun to Start Your App

We migrated the code running the superchargejs.com website from CommonJS to ESM. We used ts-node in combination with SWC to run the CommonJS TypeScript code. But ts-node isn’t working with TypeScript and ESM (there’s an open issue). Now that ts-node isn’t working, we need to use …

Continue Reading

PM2 — Use NPM to Start Your App

NPM as a package manager provides a lot capabilities outside the actual dependency management. You can leverage a built-in functionality to run scripts which enables the use case of NPM as a build tool. Further, you can define a script within your package.json file that executes various tasks before …

Continue Reading

PM2 — Create Multiple Environments in Process File (JSON/JS/YAML)

PM2 gives you the opportunity to create advanced application configurations, also known as a process file or ecosystem file. Within those process files, you can define environment variables and make them only available to the related application. Even further, PM2 provides the feature to create multiple environments with completely different …

Continue Reading
Page 1 of 3

Explore the Library

Find interesting tutorials and solutions for your problems.