-
Notifications
You must be signed in to change notification settings - Fork 1
Deploying to Heroku with Conda Buildpack
Tony Fast edited this page Aug 31, 2015
·
2 revisions
This Flask application runs a web service in an conda environment. The web service interacts with Bokeh and Blaze.
It was very easy to deploy a working application in a Conda environment to Heroku with Heroku Conda Buildpack
Create a new application with the Conda Buildpack.
heroku create --app APP_NAME --buildpack https://github.com/kennethreitz/conda-buildpack.git
heroku config:add BUILDPACK_URL=https://github.com/kennethreitz/conda-buildpack.git
heroku ps:scale web=1
Conda-buildpack's instructions provided almost everything necessary for the application to work. A Procfile is required to run the flask application. The application uses Heroku's environment variable PORT to detect the right port.
Put this snippet in your Procfile.
web: python app.py