I have developed my project in the Nest JS framework. My main file in the src folder (src/main.ts). How can I start the server on my Digital Ocean server?
After you build the project, then it will have main.js
file under /dist
.
So just run:
pm2 start PATH_TO_YOUR_PROJECT/dist/main.js --name=YOUR_APP_NAME
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With