- Python
- Virtual Environment
Create New Virtual Environment (Venv) and Install Dependencies
python3 -m venv name_of_your_venv
source name_of_your_venv/bin/activate
pip install -U pip
python -m pip install --upgrade setuptools
pip install -r requirements.txt -U
Call the app initialization
cd app/
python3 web_server.py
- Docker Desktop
The file named Dockerfile contains all the instructions to build a Docker image. Navigate to root of the project and run:
docker build -t ml_model:1.0 .
Then run the docker image on port 8080:
docker run -p 8080:8080 ml_model:1.0
- Install heroku Comand Line Interface (CLI).
- Login to Heroku.
heroku login -i
- Update to beta.
heroku update beta
- Install plugin-manifest.
heroku plugins:install @heroku-cli/plugin-manifest
- Create your app
heroku create YOUR-APP-NAME --manifest
- Check if app has been created. Your app should be listed.
heroku apps
- Update Remote
heroku git:remote -a YOUR-APP-NAME
- Publish your app.
git push heroku main
- Check app status.
heroku logs -a YOUR-APP-NAME
Now you can visit you deployed app in the URL Heroku made for you. https://YOUR-APP-NAME.herokuapp.com/