HTML5 Website Help

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)

1 Like

Would recommend a HTML/CSS/JS repl for this, since those are “always on” and don’t need to be woken.

2 Likes

Adding to @bigminiboss’s post: You can also buy Hacker plan and be able to use an Always On boost.

2 Likes

Sorry but those do need to be woken sadly

oh wait welcome to community @sonicx180

1 Like

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?

1 Like

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.

1 Like

coding389 works only on repl.co subdomains, that is correct, try another one like Down Time monkey

Down time monkey tutorial by @IroncladDev

1 Like

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

1 Like

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)?

2 Likes

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.

1 Like

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

3 Likes