librelist archives

« back to archive

Flask hosting for Flask list members

Flask hosting for Flask list members

From:
bruce bushby
Date:
2013-03-16 @ 12:36
I was wondering how difficult it would be to manage this server as a "list
effort" ?
http://www.fasthosts.co.uk/dedicated-servers/linux-servers/ds710i-linux/

I can't imagine it would be too hard knocking a very simple web interface
together to register/upload app. A small "core" management
team could fund/administer it at a cost of $78/month..core team of 6 people
paying $15/month

I would suggest Fedora 18 + nginx frontend. Each registered user would be
given a port to "bind" their app to and a script would update nginx
with their url/port details. Create a user the same as the url and use
virtualenv keeps everything local to the users home dir and "sftp" uploads.
Nginx
would write log to users home dir/app_dir etc

Would be a first where a web framework includes free web hosting.

Main problem would be managing malicious behaviour. Since a user wouldn't
be given a login shell...they might code a webapp that interacts like a
shell
and "jails" would be a real headache to manage.

Re: [flask] Flask hosting for Flask list members

From:
Steven Kryskalla
Date:
2013-03-16 @ 23:13
On Sat, Mar 16, 2013 at 5:36 AM, bruce bushby <bruce.bushby@gmail.com> wrote:
> Would be a first where a web framework includes free web hosting.

Flask actually had something like this at one point!

https://twitter.com/mitsuhiko/status/119835403686641664
http://web.archive.org/web/20120521043013/https://tryflask.ep.io/

It's a neat idea to offer free hosting but I think it would take a lot
of work. 8GB of RAM doesn't leave room for very many apps if it
becomes popular (or if people create accounts and never use them). And
as you said, securing it and making sure a user can't hog resources
would be difficult.

I think there are a few good options for free python hosting nowadays.
Like these:

https://www.pythonanywhere.com/
http://www.heroku.com/
https://www.dotcloud.com/

I would steer people towards those if they're looking for free flask hosting.

-Steve