A mini bottle skeleton app for deployment on heroku.
Sample deployment with numpy, pandas, textblob (with some nltk corpora).
Clone and add to git
$ git clone git@github.com:alyssaq/bottle-heroku-skeleton.git
$ git init
$ git add .
$ git commit -m "init"
Specify custom buildpack and push to heroku
$ heroku login
$ heroku config:set BUILDPACK_URL=https://github.com/alyssaq/heroku-buildpack-python-sklearn
$ git push heroku master
$ heroku open # Open the app in the browser
$ git push heroku master
Specify your dependencies in requirements.txt
E.g. To add scipy
and scikit-lean
scipy==0.11.0
scikit-learn==0.13.1
Install requirements into a virtualenv:
$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt
$ deactivate # Stop virtualenv when you are done
Locally:
$ python app.py 8888 # Specify a port
$ python app.py # Use default 8080 port
Using Foreman:
$ foreman start
Open browser at http://0.0.0.0:8080
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT License