Bug description:
Then in my repl I am using ngrok for webhook. Then I starting a ngrok./ngrok htpp 8080 after closing browser’s tab my ngrok is ending his work
Expected vs Current Behavior:
I expected It will work like it must, but it isnt.
Steps to reproduce:
Reload page use pc , phone, Microsoft Edge, making new repls, forking repls and a lot
Bug appears at this link: https://replit.com/~?supportform=true
I also tried pc
Screenshot(s)/Screen Recording:
Browser/OS/Device: Mozilla/5.0 (Linux; Android 12; SM-G973F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Replit Profile: https://replit.com/@lixelv
This isn’t a bug. If you need to run ngrok, you can have it run at Repl start-up with .replit
2 Likes
Replit is not a free VPS, all repls go to sleep eventually, which shuts down the console process. The shell process is not even meant for hosting, so it closes down as soon as your workspaces closes down (it is a workspace tool).
To make your repl wake up properly when a person try’s to access the website, do what @youngchief said
3 Likes
Thanks for asking my question 
1 Like
Could you please elaborate? I am writing code for a telegram bot(here too the Shell/Console is closing after closing the browser’s tab )
How can I have it run at Repl start-up with .replit
I can see the .replit
file in my repl.
1 Like
The command your looking for is ngrok tcp 22
. In this case, the example command is forwarding port 22 for TCP. Now you’d have to change it depending on what your trying to expose. If you’re trying to run it alongside another command, use &
before the other command to run your Telegram bot.
1 Like