Skip to content

Instantly share code, notes, and snippets.

@jbayer
Created May 27, 2013 22:11
Show Gist options
  • Save jbayer/5659327 to your computer and use it in GitHub Desktop.
Save jbayer/5659327 to your computer and use it in GitHub Desktop.
jbayer-mbpro:helloflask jbayer$ cf push --buildpack git://github.com/heroku/heroku-buildpack-python.git
Using manifest file manifest.yml
Creating hello-flask... OK
1: a1-app.cf-app.com
2: none
Domain> a1-app.cf-app.com
Creating route hello-flask.a1-app.cf-app.com... OK
Binding hello-flask.a1-app.cf-app.com to hello-flask... OK
Uploading hello-flask... OK
Starting hello-flask... OK
-----> Downloaded app package (4.0K)
Initialized empty Git repository in /tmp/buildpacks/heroku-buildpack-python.git/.git/
Installing heroku-buildpack-python.git.
-----> No runtime.txt provided; assuming python-2.7.4.
-----> Preparing Python runtime (python-2.7.4)
-----> Installing Distribute (0.6.36)
-----> Installing Pip (1.3.1)
-----> Installing dependencies using Pip (1.3.1)
Downloading/unpacking Flask==0.9 (from -r requirements.txt (line 1))
Running setup.py egg_info for package Flask
warning: no files found matching '*' under directory 'tests'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes/.git'
Downloading/unpacking Jinja2==2.6 (from -r requirements.txt (line 2))
Running setup.py egg_info for package Jinja2
Downloading/unpacking Werkzeug==0.8.3 (from -r requirements.txt (line 3))
Running setup.py egg_info for package Werkzeug
warning: no files found matching '*' under directory 'werkzeug/debug/templates'
warning: no files found matching '*' under directory 'tests'
no previously-included directories found matching 'docs/_build'
Downloading/unpacking distribute==0.6.31 (from -r requirements.txt (line 4))
Running setup.py egg_info for package distribute
Installing collected packages: Flask, Jinja2, Werkzeug, distribute
Running setup.py install for Flask
warning: no files found matching '*' under directory 'tests'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes/.git'
Running setup.py install for Jinja2
Running setup.py install for Werkzeug
warning: no files found matching '*' under directory 'werkzeug/debug/templates'
warning: no files found matching '*' under directory 'tests'
no previously-included directories found matching 'docs/_build'
Found existing installation: distribute 0.6.36
Uninstalling distribute:
Successfully uninstalled distribute
Running setup.py install for distribute
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /app/.heroku/python/lib/python2.7/site-packages
Non-egg installation
Moving elements out of the way...
Already patched.
/app/.heroku/python/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info already patched.
Installing easy_install script to /app/.heroku/python/bin
Installing easy_install-2.7 script to /app/.heroku/python/bin
After install bootstrap.
/app/.heroku/python/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info already exists
Successfully installed Flask Jinja2 Werkzeug distribute
Cleaning up...
-----> Uploading staged droplet (29M)
-----> Uploaded droplet
Checking hello-flask...
Staging in progress...
Staging in progress...
Staging in progress...
0/1 instances: 1 starting
0/1 instances: 1 starting
1/1 instances: 1 running
OK
jbayer-mbpro:helloflask jbayer$ cf app
Using manifest file manifest.yml
hello-flask: running
usage: 256M × 1 instance
urls: hello-flask.a1-app.cf-app.com
jbayer-mbpro:helloflask jbayer$ curl -vvv http://hello-flask.a1-app.cf-app.com
* About to connect() to hello-flask.a1-app.cf-app.com port 80 (#0)
* Trying 54.236.66.121...
* connected
* Connected to hello-flask.a1-app.cf-app.com (54.236.66.121) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Host: hello-flask.a1-app.cf-app.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=utf-8
< Date: Mon, 27 May 2013 22:11:00 GMT
< Server: Werkzeug/0.8.3 Python/2.7.4
< Content-Length: 30
< Connection: keep-alive
<
* Connection #0 to host hello-flask.a1-app.cf-app.com left intact
Hello World from Python Flask!* Closing connection #0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment