Anyone using repl.it as a node express server?
JohnJoel (6)

I love using repl.it for creating node express server but I'm having the following problems:

  1. At one point it cannot start, saying port 3000 is already in use and there is no way to kill it. What I do is duplicate the repl and go from there :/

  2. My server goes down after some time so I want to ask if there's a good reliable host for my node server

Thanks!

You are viewing a single comment. View All
Answered by vedprad1 (815) [earned 5 cycles]
View Answer
TheDrone7 (643)

As for issue 1, try not passing any port number to allow it to use any available ports. You can also fork your repl and run the new one after deleting the old one to kill the process.

As for the second issue, you would need to set up a pinging service such as uptimerobot or https://portal.kognise.dev/ping which send an http request to your server at fixed intervals, be sure to keep the interval below 30 minutes. I also showed how to setup uptimerobot in this tutorial.