1682 shaares
17 private links
17 private links
5 results
tagged
services
Testcontainers is an opensource library for providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
A detailed article on how web developers should price their websites and services to get more freelancing clients. This article can change your life.
You can use environment variable.
For example:
1) NODE_PORT=3002 pm2 start -I 0 app.js
2) Read value in app:
console.log(process.env.NODE_PORT);
Or, if you are build express app:
1) PORT=3002 pm2 start -I 0 ./bin/www
2) Express load PORT automatically at start application.