I found this article interesting/useful because it is focused on DIY. I've been using dotcloud for hosting my flask apps, and it's very easy, but if I ever want to do it myself one day I now know how.
Yesterday I spent 2 hrs to figure out why dotcloud keeps telling me that it finds no uwsgi. I managed to load another flask website with the same structure. I am now thinking numpy and pandas may be too heavy?
Anyway, a detailed log of pushes would really help a lot.
Hi there, you can definitely install numpy and panda into a dotcloud app. Simply add them to a file called requirements.txt, they should be installed automatically.
You can run 'dotcloud logs' to access detailed logs of your app's deployment and activity, that might help.
Otherwise drop us a line at support@dotcloud.com and we'll be happy to help you out!
Why not use nginx/uwsgi/virtualenv from ubuntu repositories? In case of uwsgi, you'd get ready-made upstart and logrotate scripts, and with virtualenv you get automatic updating with the rest of packages.
If you read the 'Portability' portion on the bottom, you can run a test server with just uWSGI. For actually deploying with Mac, that would be entirely different.
22 comments
[ 3.7 ms ] story [ 56.5 ms ] threadFirst set up the Heroku "toolbelt" (https://toolbelt.heroku.com), and once that's done, you can run this bash script (https://gist.github.com/2622850) to create and deploy a "hello world" Flask app on Heroku:
It should return a live Web URL for your app: Kenneth (http://kennethreitz.com) has shown you can get good performance with Flask on the free dyno (http://flask.pocoo.org/mailinglist/archive/2012/2/22/flask-o...).See the Heroku Quickstart (https://devcenter.heroku.com/articles/quickstart) and Python tutorial (https://devcenter.heroku.com/articles/python) for details.
There are templates abound:
https://github.com/gumho/minimal-flask-gae-template
https://github.com/kamalgill/flask-appengine-template
https://github.com/toomore-such/template-gae-with-flask
Step 1: sign up for a dotCloud account: (http://dotcloud.com)
Step 2: Follow these steps: http://flask.pocoo.org/snippets/48/
Anyway, a detailed log of pushes would really help a lot.
You can run 'dotcloud logs' to access detailed logs of your app's deployment and activity, that might help.
Otherwise drop us a line at support@dotcloud.com and we'll be happy to help you out!
I know you might send me to pylon, but flask's simplicity and flexibilty make it more alluring to me.
Quite impressed with flask though - lovely simple framework that works the same way my brain does.