Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
24

Keeping repl permanently alive.

conspicous
conspicous

So I have been making a repl that allows you to store items online but every time, after a certain amount of time, it shuts down the express server (nodejs) and it loses all data except users that have registered. Can someone help me to keep it online (eg. An example that works)?

Thanks in advance.

Note: the server is based off lolisafe and the script is at lolisafe.js.

Edit: db is not an option and uptime robot lasts 2 months.

3 years ago

Voters

Comments

TopNew
27

use this:
ping.mat1.repl.co
just enter in the url, and ill keep the site up

3 years ago
1
conspicous
conspicous

thanks it actually worked!

@TaylorLiang

3 years ago
1
Pandapip2
Pandapip2

If you can force the repl to crash using kill 1 when the repl crashes, then using the url ping.mat1.repl.co/__tail should turn the repl back on. Just have the repl run "kill 1" on exit, e.g. have a bash script that looks like this:
node main.js >> main.log
kill 1

3 years ago
1
conspicous
conspicous

thanks for the heads up!

@Pandapip2

3 years ago
2
PaytonTheMartian
PaytonTheMartian

@TaylorLiang
could pinging the site for a long time cause it to crash or be shut down by repl.it?

3 years ago
0

@DeBeast591
Nope. I had a site that I pinged for around 4 months. Didnt crash once

3 years ago
1
1
AkshitRai
AkshitRai

thanks man you are awesome

2 years ago
1
LuuNoo
LuuNoo

thank you it works !

1 year ago
1
conspicous
conspicous

@LuuNoo
Seems that the website is not active often, leading to errors occasionally. You could try freshping.

(HOW is this post still alive!)

1 year ago
1
JaySmith11
JaySmith11

Nonetheless, save a few hours toward the beginning of the day and evening for continuous work. What's more, however telecommute is about adaptability, attempt to begin and complete (!) your day on time too.Setting cutoff times for message answers and following your group's movement is OK; actually, mind the management level. Individuals aren't robots to sit before the screens for 8 hours and reply in practically no time, however you can here and there require prompt answers. Indeed, if so – simply call, don't message. Also, attempt to try not to be excessively official at calls – side remarks and jokes assist with making the air less tense.Working from home requires a progress to computerized reality from each business cycle player. Furthermore, project supervisors face considerably more difficulties since pioneers need to discover better approaches to work together with their groups, partners, and customers, you can always read interesting post for more details about IT world and trends.However, boosting your usefulness is conceivable – with new ways to deal with correspondence and fair programming. Mechanization stages offer a lot of phenomenal components that can be fused into your work process with the assistance of a Salesforce senior. Along these lines, come into the new world!

1 year ago
1
conspicous
conspicous

@JaySmith11
Well yes ik about that.

1 year ago
1
shkeffy
shkeffy

Hey, do you ping the Repl or the website using https://ping.mat1.repl.co/#?

@StringentDev

7 months ago
1
conspicous
conspicous

@shkeffy
nope - that has not been maintained. try a service like uptime robot or freshping.

7 months ago
1
johmon6
johmon6

@Pandapip2
Does hooking the exit event and running language specific equivalents (eg Javascript's process.exit(1)) in the main code also work to this same effect?

6 months ago
1
ohlsendavid123
ohlsendavid123

Mine doesn't work. It says: Invalid url (is the website down?)
Please help me.

5 months ago
1
conspicous
conspicous

@ohlsendavid123
Use uptime robot or freshping

5 months ago
4
Coder100
Coder100

Try to make sure there are no errors first. Right now, there is a deprecation error.

3 years ago
1
conspicous
conspicous

No I have to reboot, hard restore

@Lethdev2019

3 years ago
5
Coder100
Coder100

It doesn't matter if it works or not, if there is a warning, it will be potentially fatal.

@Lethdev2019

3 years ago
2
RohilPatel
RohilPatel

Well, if you have items you need to save, you could use fs, which won't get rid of the sleeping part, but will store the data.

3 years ago
4
Coder100
Coder100

He already has the DB up, and in theory it should work, but REPL.IT has limitations

@RohilPatel

3 years ago
4
Coder100
Coder100

Why did u say ok twice >:(

@RohilPatel

3 years ago
2
RohilPatel
RohilPatel

Cuz u had 2 messages.

@Coder100

3 years ago
1
icated
icated

msjxmznnzskznznekznnzznxmznjweis

4 months ago
1
Brendatorres
Brendatorres

So I have been creating a repl that allows you to save objects on-line but on every occasion, after a sure amount of time, it shuts down the express server (nodejs) and it loses all facts except users which have registered. IT contractors are diverse software program builders and network engineers employed through a agreement. With these specialists, you could put in force technical answers and fulfill more than one business obligations. Programmers use one-of-a-kind systems and languages to create simple cell apps and complex systems. And many IT contractors developers decide upon contracting because they don’t experience tied to one organization or challenge.

5 months ago
1
conspicous
conspicous

@Brendatorres
ok, you used GPT3 or GPT2 didn't you? It was not a coherent response.

5 months ago
1
Dorothymiller
Dorothymiller

So I had been creating a repl that allows you to keep items online but whenever, after a certain quantity of time, it shuts down the express server (nodejs) and it loses all statistics besides customers that have registered. Companies are continuously evolving their approach to statistics privateness and confidentiality. Understanding the significance of the subject’s sensitivity, several outsourcing carriers and corporations come organized see this here to sign confidentiality agreements and clauses and even have protection certificates to show their adherence. For example, if a company is working with exceedingly touchy healthcare statistics, the appropriate facts providers are extraordinarily vigilant and could have HIPAA compliance amongst other policies beneath their belt. So, if facts protection is some thing that has been making you hesitant approximately outsourcing a complex task, you want now not fear approximately it.

7 months ago
1
DaddE23
DaddE23

how do you keep the chromium advanced browser permanently alive?

9 months ago
1
conspicous
conspicous

@DaddE23
You can't - it is an application not a website

9 months ago
1
DaddE23
DaddE23

@StringentDev
thank u 4 letting me know

9 months ago
1
SixBeeps
SixBeeps

Either use a DB (the best option) or use UptimeRobot (another viable option, but I'd use this if absolutely necessary)

3 years ago
2
conspicous
conspicous

Looking for a solution that lasts forever not two [email protected]

3 years ago
2
conspicous
conspicous

It's the fact it does not save files

@SixBeeps

[Edit] not fully

3 years ago
2
SixBeeps
SixBeeps

@Lethdev2019
UptimeRobot lasts forever

3 years ago
2
conspicous
conspicous

Not the free plan. Unless you want people to pay for a was meant to be free service.

@SixBeeps

3 years ago
1
SixBeeps
SixBeeps

@Lethdev2019

image
are you talking about this?

3 years ago
1
conspicous
conspicous

Yes, plus the credits that you [email protected]

3 years ago
1
SixBeeps
SixBeeps

@Lethdev2019
Okay, so here's the thing: those are logs. Basically, UTR keeps logs of each ping so that you can have a history of each ping's response. For your purposes, you do not need logs. It will keep pinging your site (keeping it alive) forever.

3 years ago
1
conspicous
conspicous

It's not lettin me put in the url


@SixBeeps

3 years ago
1
conspicous
conspicous

Ok can you Tell me how to make it not log stuff.

@SixBeeps

3 years ago
1
Coder100
Coder100

You could turn off email responses

@Lethdev2019

3 years ago
1
conspicous
conspicous

How does that affect how long the server lives?

@Coder100

3 years ago
1
conspicous
conspicous

It still logs at the dashboard

@Coder100

3 years ago
1
Coder100
Coder100

Yeah, it's supposed to do that, it's to monitor uptime, and since it always pings the website, it has the benefit of keeping it alive.

@Lethdev2019

3 years ago
1
conspicous
conspicous

Actually, looked up stuff (tried similar ideas as well) half the time it does not work or the repl become unstable

@Coder100

3 years ago
2
SixBeeps
SixBeeps

@Lethdev2019
UTR works perfectly fine for me (using a Django program)

3 years ago
2
SixBeeps
SixBeeps

@Lethdev2019
Either way, they're both web repls.

3 years ago
4
Coder100
Coder100

The REPL becomes unstable because there is an error.

@Lethdev2019

3 years ago
2
conspicous
conspicous

@Coder100
well I cant launch it anymore due to something happening

3 years ago
2
conspicous
conspicous

atually, i found mine is very stable to the point i can safley say that i could go to sleep and 1 day later, it is still running.

@Coder100

3 years ago
Load more