Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: localtunnel
PostPosted: Tue Aug 14, 2012 2:49 pm 
Offline

Joined: Tue Aug 14, 2012 2:44 pm
Posts: 1
Hi Guys,

Anybody knows how to make localtunnel (http://progrium.com/localtunnel/) work? I'm trying to run a simple Flask script and I want to make it public through localtunnel.

Thanks


Top
   
 Post subject: Re: localtunnel
PostPosted: Tue Aug 14, 2012 3:23 pm 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
If you're using Flask, you should really put something in front of it which is better at handling lots of connections. Alternatively, you could just configure Flask to listen on a public address/port when it starts up without the need for localtunnel.

I use nginx + GUnicorn for my personal Flask app. I then have supervisord keep tabs on GUnicorn and restart it as needed. If you need something that's going to handle lots of traffic/concurrent connections I would suggest using uWSGI over GUnicorn.

-Tim

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
 Post subject: Re: localtunnel
PostPosted: Tue Aug 14, 2012 3:37 pm 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
Here's an example Python script showing the first method:

- http://hastebin.com/kikocasuvu.py

-Tim

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group