ML-Heroku-Deployement

  1. Siguu and create a heroku account

https://signup.heroku.com/

  1. Install Heroku CLI

https://devcenter.heroku.com/articles/heroku-cli

  1. Clone the code to the local and check if it is working

git clone https://github.com/nursnaaz/ML-Heroku-Deployement.git

  1. Run it in local using the command after traversing into the folder

pip install -r requirements.txt

python app.py

or

gunicorn app:app -b 0.0.0.0:8080

  1. Login to your Heroku account

heroku login

  1. Create a heroku app

heroku create <NAME OF THE APP YOU WANT IT TO GIVE>

  1. Push the code, build and deploy using Heroku

git push heroku master

  1. After completing you can see a message app is deployed with an URL

  2. Take the url and launch it in the browser

  3. To check logs

heroku logs --tail

Thats it

Reference: https://github.com/PaacMaan/cars-price-predictor