Skip to content

parano/heroku-deploy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#BentoML Heroku deployment tool

Prerequisites

Deployment operations

Create a deployment

Use command line

$ python deploy.py <Bento_bundle_path> <Deployment_name> <Config_JSON default is heroku_config.json>

Example:

$ MY_BUNDLE_PATH=${bentoml get IrisClassifier:latest --print-location -q)
$ python deploy.py $MY_BUNDLE_PATH my_first_deployment heroku_config.json

Use Python API

from deploy import deploy_heroku

deploy_heroku(BENTO_BUNDLE_PATH, DEPLOYMENT_NAME, CONFIG_JSON)

Available options

Update a deployment

Use command line

$ python update.py <Bento_bundle_path> <Deployment_name> <Config_JSON>

Use Python API

from update import update_heroku

update_heroku(BENTO_BUNDLE_PATH, DEPLOYMENT_NAME, CONFIG_JSON)

Get a deployment's status and information

Use command line

$ python describe.py <Deployment_name>

Use Python API

from describe import describe_heroku

describe_heroku(DEPLOYMENT_NAME)

Delete a deployment

Use command line

$ python delete.py <Deployment_name>

Use Python API

from delete import delete_heroku

delete_heroku(DEPLOYMENT_NAME)

About

Deploy BentoML bundled models to Heroku

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%