Discuss Scratch

--Jung--
Scratcher
100+ posts

Up time robot

So I have finish my cloud python project and people say that you can use repl.it to host up time robot how do I host?

___________________________________________________________________________________________________________________

Hello I am –Jung–
I like to make game and some technical project
COOL PROJECT
Paint

___________________________________________________________________________________________________________________
ajsya
Scratcher
1000+ posts

Up time robot

Put your code in replit with keep_alive() script and then create a uptimerobot account (search google) watching the url

Feel free to message me on my profile if you need to tell me something/want someone to talk to.

Hi, I'm ajsya!

| GitHub | Wiki | My Posts |

Before creating a new topic on the forums search Ocular to see if one already exists!ˇ
--Jung--
Scratcher
100+ posts

Up time robot

ajsya wrote:

Put your code in replit with keep_alive() script and then create a uptimerobot account (search google) watching the url
I have created UptimeRobot account next step?

___________________________________________________________________________________________________________________

Hello I am –Jung–
I like to make game and some technical project
COOL PROJECT
Paint

___________________________________________________________________________________________________________________
Chiroyce
Scratcher
1000+ posts

Up time robot

--Jung-- wrote:

I have created UptimeRobot account next step?
Add a monitor for your website's URL.







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
--Jung--
Scratcher
100+ posts

Up time robot

Chiroyce wrote:

--Jung-- wrote:

I have created UptimeRobot account next step?
Add a monitor for your website's URL.
I use repl.it t create so you mean I need to add project link to URL (or IP) section right?

___________________________________________________________________________________________________________________

Hello I am –Jung–
I like to make game and some technical project
COOL PROJECT
Paint

___________________________________________________________________________________________________________________
Chiroyce
Scratcher
1000+ posts

Up time robot

--Jung-- wrote:

I use repl.it t create so you mean I need to add project link to URL (or IP) section right?
No no - when you run the server, do you see a link in the top-right corner?







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
--Jung--
Scratcher
100+ posts

Up time robot

Chiroyce wrote:

--Jung-- wrote:

I use repl.it t create so you mean I need to add project link to URL (or IP) section right?
No no - when you run the server, do you see a link in the top-right corner?
Idk what do you mean but here is my screenshot
https://i.ibb.co/LZQbqxY/Screenshot-249.png
https://i.ibb.co/rk4HT3J/Screenshot-250.png

___________________________________________________________________________________________________________________

Hello I am –Jung–
I like to make game and some technical project
COOL PROJECT
Paint

___________________________________________________________________________________________________________________
Chiroyce
Scratcher
1000+ posts

Up time robot

You need to follow these steps -

Raihan142857 wrote:

Create a file called “keep_alive.py”, and put this in it
from flask import Flask
from threading import Thread
app = Flask('')
@app.route('/')
def home():
    return "I'm alive"
def run():
  app.run(host='0.0.0.0',port=8080)
def keep_alive():
    t = Thread(target=run)
    t.start()
then in your main file put this at the top:
from keep_alive import keep_alive
keep_alive()
then make an uptime robot account, add a new https monitor for https://<repl-name>.<repl-username>.repl.co then it is running 24/7

https://scratch.mit.edu/discuss/post/5172566







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
--Jung--
Scratcher
100+ posts

Up time robot

Chiroyce wrote:

You need to follow these steps -

Raihan142857 wrote:

Create a file called “keep_alive.py”, and put this in it
from flask import Flask
from threading import Thread
app = Flask('')
@app.route('/')
def home():
    return "I'm alive"
def run():
  app.run(host='0.0.0.0',port=8080)
def keep_alive():
    t = Thread(target=run)
    t.start()
then in your main file put this at the top:
from keep_alive import keep_alive
keep_alive()
then make an uptime robot account, add a new https monitor for https://<repl-name>.<repl-username>.repl.co then it is running 24/7

https://scratch.mit.edu/discuss/post/5172566
Thanks! but why when I left repl it's just going to online for few min then it will has some error

___________________________________________________________________________________________________________________

Hello I am –Jung–
I like to make game and some technical project
COOL PROJECT
Paint

___________________________________________________________________________________________________________________
-SvenSvenska-
Scratcher
19 posts

Up time robot

--Jung-- wrote:

Chiroyce wrote:

You need to follow these steps -

Raihan142857 wrote:

Create a file called “keep_alive.py”, and put this in it
from flask import Flask
from threading import Thread
app = Flask('')
@app.route('/')
def home():
    return "I'm alive"
def run():
  app.run(host='0.0.0.0',port=8080)
def keep_alive():
    t = Thread(target=run)
    t.start()
then in your main file put this at the top:
from keep_alive import keep_alive
keep_alive()
then make an uptime robot account, add a new https monitor for https://<repl-name>.<repl-username>.repl.co then it is running 24/7

https://scratch.mit.edu/discuss/post/5172566
Thanks! but why when I left repl it's just going to online for few min then it will has some error
You need to keep the repl open. You need to pay for hacker plan to get 5 always on repls.

My scratch “scratching” account isToastersUnited, this is my external one. Might be more active on this one.

Powered by DjangoBB