# Path: app.py



import os
import sys
from flask import request, Response
from app import app
/home/dotcloud/current is the default path to your app on the server.

Eventually, create nginx.conf and uwsgi.conf in the source folder. See Dotcloud documentation for further information.

Create your requirements.txt file:

pip freeze > ./requirements.txt
Now, make sure that your source folder contains at least:

./
../
./<your_app_package>
    ./static
    ./__init__.py
    ./ ...
./requirements.txt
./wsgi.py
./dotcloud.yml
./ ...
Create a symbolic link to your static folder:

cd <source_folder>
ln -s <your_app_package>/static static
You can now push the code to Dotcloud:

dotcloud push <namespace>
A random URL has been generated for your python service in your application (something like http://my4ppr0x.dotcloud.com/). Point your browser to this URL to see your new app running.
"""



# Path: app.py



# Path: deployment/dotcloud.py
import os
import sys
from flask import request, Response
from app import app

/home/dotcloud/current is the default path to your app on the server.

Eventually, create nginx.conf and uwsgi.conf in the source folder. See Dotcloud documentation for further information.

Create your requirements.txt file:

pip freeze > ./requirements.txt
Now, make sure that your source folder contains at least:

./
../
./<your_app_package>
    ./static
    ./__init__.py
    ./ ...
./requirements.txt
./wsgi.py
./dotcloud.yml
./ ...
Create a symbolic link to your static folder:

cd <source_folder>
ln -s <your_app_package>/static static
You can now push the code to Dotcloud:

dotcloud push <namespace>
A random URL has been generated for your python service in your application (something like http://my4ppr0x.dotcloud.com/). Point your browser to this URL to see your new app running.
"""



@app.route('/')