I have figured it out and feel like sharing it here for others to use and save time.
There are 3 ways to run your nodejs app permanently on ubuntu linux machines.
Use ampersand (&) at the end of your command. enter this command “nodejs feed.js &” (without the double quote).
Use forever command of npm package
User pm2 command of npm package
More details
Continue reading
Advertisements