Flask Snippets

Deploying a Flask app on Dotcloud

Please note: this snippet does not cover the connection to the database.

How to deploy a Flask app on Dotcloud

Create the namespace you want:

dotcloud create <namespace>

A DotCloud application is described by a build file, which is a simple YAML file named "dotcloud.yml" located in your local source directory. To add a new python service to your app, just add the following lines to <source_folder>/dotcloud.yml: