nodeschool / discussions

:school::speech_balloon: need help with nodeschool? or just wanna ask a question? open an issue on this repo!
489 stars 107 forks source link

How to install node js application in linux hosting server? #1934

Closed hashemirafsan closed 7 years ago

hashemirafsan commented 7 years ago

I'm trying to make a script which fetches the data from http://codeforces.com API. When I try to execute on CMD it's properly run then I use express package for open a localhost server to run my script on the browser and it's also executed properly but now I wanna upload on my hosting server but it doesn't work. how can I do that ? this is my repository : https://github.com/hashemirafsan/ACM_helper/blob/master/app.js

riyadhalnur commented 7 years ago

Hey @hashemirafsan. To run your app on a server, you need a process manager which will essentially run your app as a process just like any other app in an OS. There are tons of options to choose from but I like pm2 and forever. forever is simpler to get started while pm2 is more powerful feature wise.

stale[bot] commented 7 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 7 years ago

This issue is being automatically closed due to inactivity. Please feel to re-open.