I have an HTML5 website using javacript. I use the command line npm start
to start my website. How can I get the site to be online 24/7? Note: I cannot start the site any other way.
You can use external pingers for a while, but then that will stop working, for now (a month or two I think), try coding398 pinger, otherwise, after that grace period, you need to buy it (20 cycles, 0.2 cents, a day per repl)
Would recommend a HTML/CSS/JS repl for this, since those are âalways onâ and donât need to be woken.
Adding to @bigminibossâs post: You can also buy Hacker plan and be able to use an Always On boost.
Sorry but those do need to be woken sadly
Does this work with custom domains?
I tried. Doesnt work with anything. reminder i use npm start to start the website. any chance i can talk to you on discord?
You can fix this by putting npm start
as your run command in your .replit
config file. This should be called when it is booting up.
coding389 works only on repl.co subdomains, that is correct, try another one like Down Time monkey
you can still enter in shell
curl "https://ced0775a-02a8-41d5-a6cf-14815ad4a73e.id.repl.co/add?repl=${REPL_SLUG}&author=${REPL_OWNER}"
The website is still also hosted on the repl.co
domain even with a custom domain
Not in my experience and many othersâ. You sure you werenât using the auto refresh template or something (which isnât a static hosting repl unlike the normal one)?
HTML/CSS/JS Repls must be woken up, Auto Refresh Repls donât need to be woken up
Iâve never had to wake up a HTML, CSS & JS Repl, which I would assume is due to their static hosting.
Really? I havenât used one in a while but Iâm 99% sure you do need to wake them up lol
I think they are just really fast to wake up.
there is no waking up to do on HTML, CSS, JS repls because it doesnât connect to your repl at all. When you ârunâ it sends the files to be hosted statically