Created
February 13, 2012 12:58
-
-
Save bbrodriges/1816769 to your computer and use it in GitHub Desktop.
HelloWorld with bottle+gevent
This file contains hidden or 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
# -*- coding: UTF-8 -*- | |
#THIRD-PARTY MODULES | |
import bottle | |
@bottle.route('/') | |
def index(): | |
return 'Hello, World!' | |
#BOTTLE STARTER | |
bottle.run(host='127.0.0.1', port=8080, server='gevent') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment