Skip to content

Instantly share code, notes, and snippets.

Forked from defnull/gist:1224387
Created February 10, 2012 18:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Deploy a Bottle app on Heroku
mkdir heroku
cd heroku/
virtualenv --no-site-packages env
source env/bin/activate
pip install bottle
pip freeze > requirements.txt
cat > <<EOF
import bottle, os
def index():
return "Hello World"'', port=os.environ.get('PORT', 5000))
chmod a+x
echo 'web: python' > Procfile
cat >.gitignore <<EOF
git init
git add .
git commit -m "Initial commit"
heroku create --stack cedar
git push heroku master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment