Created
January 9, 2012 23:29
-
-
Save insom/1585630 to your computer and use it in GitHub Desktop.
One push gunicorn deploy from via git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aaron@aaron-laptop:~$ mkdir newsite | |
aaron@aaron-laptop:~$ cd newsite | |
aaron@aaron-laptop:~/newsite$ git init | |
Initialized empty Git repository in /home/aaron/newsite/.git/ | |
aaron@aaron-laptop:~/newsite$ cat > newsite.py | |
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return 'Hello World! (website 2)' | |
if __name__ == '__main__': | |
app.run() | |
aaron@aaron-laptop:~/newsite$ echo flask > requirements.txt | |
aaron@aaron-laptop:~/newsite$ echo 9002 > port.txt | |
aaron@aaron-laptop:~/newsite$ git add *.txt *.py | |
aaron@aaron-laptop:~/newsite$ git commit -a -m 'Initial commit' | |
[master (root-commit) cfd1cfa] Initial commit | |
3 files changed, 11 insertions(+), 0 deletions(-) | |
create mode 100644 newsite.py | |
create mode 100644 port.txt | |
create mode 100644 requirements.txt | |
aaron@aaron-laptop:~/newsite$ git push -f me:newsite master | |
X11 forwarding request failed on channel 0 | |
fatal: You are on a branch yet to be born | |
Everything up-to-date | |
aaron@aaron-laptop:~/newsite$ git push -f me:newsite master | |
X11 forwarding request failed on channel 0 | |
New python executable in /home/aaron/ws/venvs/newsite/bin/python | |
Installing distribute.................................................................................................................................................................................done. | |
Initialized empty Git repository in /home/aaron/ws/gits/newsite/ | |
Initialized empty Git repository in /home/aaron/ws/sites/newsite/.git/ | |
warning: You appear to have cloned an empty repository. | |
Counting objects: 5, done. | |
Compressing objects: 100% (3/3), done. | |
Writing objects: 100% (5/5), 438 bytes, done. | |
Total 5 (delta 0), reused 0 (delta 0) | |
From /home/aaron/ws/gits/newsite | |
* [new branch] master -> origin/master | |
Already on 'master' | |
Branch master set up to track remote branch master from origin. | |
Downloading/unpacking gunicorn | |
Downloading gunicorn-0.13.4.tar.gz (283Kb): 283Kb downloaded | |
Running setup.py egg_info for package gunicorn | |
warning: no files found matching '*' under directory 'debian' | |
Installing collected packages: gunicorn | |
Running setup.py install for gunicorn | |
warning: no files found matching '*' under directory 'debian' | |
Installing gunicorn_paster script to /home/aaron/ws/venvs/newsite/bin | |
Installing gunicorn script to /home/aaron/ws/venvs/newsite/bin | |
Installing gunicorn_django script to /home/aaron/ws/venvs/newsite/bin | |
Successfully installed gunicorn | |
Cleaning up... | |
Downloading/unpacking flask (from -r /home/aaron/ws/sites/newsite/requirements.txt (line 1)) | |
Downloading Flask-0.8.tar.gz (494Kb): 494Kb downloaded | |
Running setup.py egg_info for package flask | |
warning: no files found matching '*' under directory 'tests' | |
warning: no previously-included files matching '*.pyc' found under directory 'docs' | |
warning: no previously-included files matching '*.pyo' found under directory 'docs' | |
warning: no previously-included files matching '*.pyc' found under directory 'tests' | |
warning: no previously-included files matching '*.pyo' found under directory 'tests' | |
warning: no previously-included files matching '*.pyc' found under directory 'examples' | |
warning: no previously-included files matching '*.pyo' found under directory 'examples' | |
no previously-included directories found matching 'docs/_build' | |
no previously-included directories found matching 'docs/_themes/.git' | |
Downloading/unpacking Werkzeug>=0.6.1 (from flask->-r /home/aaron/ws/sites/newsite/requirements.txt (line 1)) | |
Downloading Werkzeug-0.8.2.tar.gz (1.1Mb): 1.1Mb downloaded | |
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' | |
warning: no previously-included files matching '*.pyc' found under directory 'docs' | |
warning: no previously-included files matching '*.pyo' found under directory 'docs' | |
warning: no previously-included files matching '*.pyc' found under directory 'tests' | |
warning: no previously-included files matching '*.pyo' found under directory 'tests' | |
warning: no previously-included files matching '*.pyc' found under directory 'examples' | |
warning: no previously-included files matching '*.pyo' found under directory 'examples' | |
no previously-included directories found matching 'docs/_build' | |
Downloading/unpacking Jinja2>=2.4 (from flask->-r /home/aaron/ws/sites/newsite/requirements.txt (line 1)) | |
Downloading Jinja2-2.6.tar.gz (389Kb): 389Kb downloaded | |
Running setup.py egg_info for package Jinja2 | |
warning: no previously-included files matching '*' found under directory 'docs/_build' | |
warning: no previously-included files matching '*.pyc' found under directory 'jinja2' | |
warning: no previously-included files matching '*.pyc' found under directory 'docs' | |
warning: no previously-included files matching '*.pyo' found under directory 'jinja2' | |
warning: no previously-included files matching '*.pyo' found under directory 'docs' | |
Installing collected packages: flask, Jinja2, Werkzeug | |
Running setup.py install for flask | |
warning: no files found matching '*' under directory 'tests' | |
warning: no previously-included files matching '*.pyc' found under directory 'docs' | |
warning: no previously-included files matching '*.pyo' found under directory 'docs' | |
warning: no previously-included files matching '*.pyc' found under directory 'tests' | |
warning: no previously-included files matching '*.pyo' found under directory 'tests' | |
warning: no previously-included files matching '*.pyc' found under directory 'examples' | |
warning: no previously-included files matching '*.pyo' found under directory 'examples' | |
no previously-included directories found matching 'docs/_build' | |
no previously-included directories found matching 'docs/_themes/.git' | |
Running setup.py install for Jinja2 | |
warning: no previously-included files matching '*' found under directory 'docs/_build' | |
warning: no previously-included files matching '*.pyc' found under directory 'jinja2' | |
warning: no previously-included files matching '*.pyc' found under directory 'docs' | |
warning: no previously-included files matching '*.pyo' found under directory 'jinja2' | |
warning: no previously-included files matching '*.pyo' found under directory 'docs' | |
Running setup.py install for Werkzeug | |
warning: no files found matching '*' under directory 'werkzeug/debug/templates' | |
warning: no files found matching '*' under directory 'tests' | |
warning: no previously-included files matching '*.pyc' found under directory 'docs' | |
warning: no previously-included files matching '*.pyo' found under directory 'docs' | |
warning: no previously-included files matching '*.pyc' found under directory 'tests' | |
warning: no previously-included files matching '*.pyo' found under directory 'tests' | |
warning: no previously-included files matching '*.pyc' found under directory 'examples' | |
warning: no previously-included files matching '*.pyo' found under directory 'examples' | |
no previously-included directories found matching 'docs/_build' | |
Successfully installed flask Jinja2 Werkzeug | |
Cleaning up... | |
To me:newsite | |
* [new branch] master -> master | |
aaron@aaron-laptop:~/newsite$ curl http://beta.insom.me.uk:9002/ ; echo | |
Hello World! (website 2) | |
aaron@aaron-laptop:~/newsite$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment