- Install python
- Add python in PATH environment variable
- Open VSCode or IDE
- Select interpreter as python
- Run
pip install -r requirements.txt
- Run server using
uvicorn main:app --host 0.0.0.0 --port 8001
- Install docker
- Create image using
docker build -t iris-mlops .
- Run image in container using
docker run -d --name iris-mlops -p 8001:8001 iris-mlops
- Install docker in VPS
- Add variables
VPS_HOST
,VPS_USERNAME
, andVPS_WORKDIR
- Add secret key
VPS_PRIVATE_KEY
- Pull project to main branch to automatically deploy