How to use and setup UptimeRobot
What is UptimeRobot?
Uptime Robot is all about helping you to keep your websites up. It monitors your websites every 5 minutes and alerts you if your sites are down.
its 100% free
It will keep your server up until your server ran into problems.
For more info click here
Once you log into your UptimeRobot account.
Go to Dashboard (default screen for uptimerobot is dashboard)
To add new link. Click Add New Monitor
Once you click that.
This Screen will popup
Now Select Monitor type HTTP(s).
Make sure type is
Now details popped up
For Friendly Name enter what would you like to call your Monitor.
For URL (or IP) enter your web server link.
if you're using repl, it should look like this
https://your-repl-name.your-username.repl.co, but with your repl name.
For Monitoring Interval, I'll suggest leaving it to the default value.
Now if you have all the info done. your page should look like this
Now you also have this box:
This means that if you select this, and your server is down or ran into any problems. UptimeRobot will alert you by sending an email.
I suggest you add alert notify
Now click Create Monitor
You have successfully created a monitor. Now your server will stay online, even if you're not running your code.
On your dashboard, your monitor will appear.
as you see, it showing that your server is down.
Your server is not down. To fix this just give it 1-2 min and reload your page.
There you go! Your Monitor is running.
I kept on having these issues where my monitor would go down with error 502 Bad Gateway. I discovered a way to fix it, and would definitely help people because I know that there must be other people looking for a solution.
repl.it will stop your project when the browser closes. Your browser fires an event when its closing so that each website/extension open knows it and can do stuff such as autosave, or in this case, shut off your project. I figured that we would need a workaround for that. By preventing the browser from sending an event that tells repl.it that its closing, the project will not shut off.
One way to do this is with the task manager on Windows. Just select the process (a.k.a. your browser) and kill the task. On Mac, you can also force quit the browser. And that's it, your repl.it project should stay online!
Note that you will have to do this for every time you close your repl.it project, it will not stay online forever after you've only done it once.
I'm hosting my bot this way, it has a file that keeps and modifies member's points based on some commands they send. After some time hosting here (in less than a day) the datafile is restored and the data lost, anyway to fix that?
I know this is old post but can someone link me or elaborate how does this work ? I mean how does this uptimerobot makes repl work or keep it running thanks.