Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.78 KB

File metadata and controls

57 lines (42 loc) · 1.78 KB

5.7 Deployment to the cloud: AWS Elastic Beanstalk (optional)

Slides

Links

Notes

As we see how to deploy our apps in AWS Let's find it out how to deploy them in Heroku.

Heroku

Here we will learn how to deploy our apps in heroku instead of AWS.

  • First of all create your web service with flask. (example file: churn_prediction.py
  • Then create a file named requirements.txt and pass your dependencies there. Example:
pickle
numpy
flask
gunicorn
  • Create another file named Procfile and add the app you want to be able to run there. Example:
web: gunicorn churn_serving:app

Note that the churn_serving name in the box above is the name of the main python file we're going to be running.

  • Create your heroku profile, Go to dashboard and the Deploy tab.
  • Follow the instruction to Deploy using Heroku Git.
  • Great, your app is now available from global universe.

I've put my heroku app files in this repository: https://github.com/amindadgar/customer-churn-app

Add notes from the video (PRs are welcome)

⚠️ The notes are written by the community.
If you see an error here, please create a PR with a fix.

Navigation