Skip to content

@defnull /gist:1224387

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Deploy a Bottle app on Heroku
mkdir heroku
cd heroku/
virtualenv --no-site-packages env
source env/bin/activate
pip install bottle gevent
pip freeze > requirements.txt
cat > <<EOF
import bottle
import os
def index():
return "Hello World"'gevent', port=os.environ.get('PORT', 5000))
chmod a+x
echo 'web:' > Procfile
echo 'env/' > .gitignore
git init
git add .
git commit -m "Initial commit"
heroku create
git push heroku master

Apparently for gevent you need to use gevent.monkey.patch_all(). Also may be there was something I did wrong but I think you need to add host . Because as I could see heroku ran just a local server with this.
I have added some revisions here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.