question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keep running even if server is offline

See original GitHub issue

I am using localtunnel with Flask and when using a development server, the server temporarily goes offline to restart if changes are detected.

Localtunnel goes offline when the server goes offline. Now, every single time I change a file, I need to rerun. Localtunnel is the easiest way for me to create tunnels. This (localtunnel going offline when the server restarts) is the only problem.

Is there anyway to disable this behavior?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

2reactions
mgeissencommented, Feb 5, 2022

I have the same issue.

For me as workaround, I had another local proxy that is forwarding the localtunnel port to my local development server. Then I’m able to restart my server without losing the localtunnel connection, because the proxy is still up and running. I’m using http-simple-proxy for that.

1reaction
TechStudent10commented, Feb 5, 2022

I have the same issue.

For me as workaround, I had another local proxy that is forwarding the localtunnel port to my local development server. Then I’m able to restart my server without losing the localtunnel connection, because the proxy is still up and running. I’m using http-simple-proxy for that.

Ah, thanks. I’ll try this out for myself later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to keep code running on client when server is offline
Simple answer i found. use try and except. simple as that.
Read more >
Enable Always Offline mode for faster access to files
This document describes how to use the Always Offline mode of Offline Files to provide faster access to cached files and redirected folders....
Read more >
Steps to Verifying a Server is Offline - Virtual-DBA
When a server appears to be offline, it's important to follow certain ... Run the following command: ping servername.domainname.com (Note: ...
Read more >
Keep processes running after SSH session disconnects
When launching the service as regular user, one might need to enable lingering (cf. enable-linger loginctl option). This is true even with nohup ......
Read more >
5 Ways to Keep Remote SSH Sessions and Processes ...
Don't Miss: 5 Useful Practices to Keep SSH Server Secure and Protected ... Resuming the session to view if job is still running....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found