Skip to content

alyssaq/bottle-heroku-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bottle skeleton for Heroku with scientific packages

A mini bottle skeleton app for deployment on heroku.
Sample deployment with numpy, pandas, textblob (with some nltk corpora).

Deploy to Heroku

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

Update files in Heroku

  $ git push heroku master

Add more python libraries

Specify your dependencies in requirements.txt
E.g. To add scipy and scikit-lean

    scipy==0.11.0
    scikit-learn==0.13.1

Develop locally

Install requirements into a virtualenv:

  $ virtualenv env
  $ source env/bin/activate
  $ pip install -r requirements.txt
  $ deactivate # Stop virtualenv when you are done

Running locally

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

Contribute

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License

About

Bottle skeleton with scientific packages for deployment on Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages