- Siguu and create a heroku account
https://signup.heroku.com/
- Install Heroku CLI
https://devcenter.heroku.com/articles/heroku-cli
- Clone the code to the local and check if it is working
git clone https://github.com/nursnaaz/ML-Heroku-Deployement.git
- 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
- Login to your Heroku account
heroku login
- Create a heroku app
heroku create <NAME OF THE APP YOU WANT IT TO GIVE>
- Push the code, build and deploy using Heroku
git push heroku master
-
After completing you can see a message app is deployed with an URL
-
Take the url and launch it in the browser
-
To check logs
heroku logs --tail
Thats it