How to Deploy Plumber


#1

I can run locally using plumb and run command from console to convert a model into an API but want to deploy it on a virtual machine and call it locally.how to do that.


#2

Great question. The plumber documentation has an entire section on various hosting options. In this case, deploying using Docker may be the best option if you're trying to deploy to a local VM. The process for deploying via Docker is fairly straightforward, and makes use of the trestletech/plumber Docker image which has the basic dependencies already installed.


#3

so it is not possible to just depoly or plumb it on VM and call it locally .


#5

For "local" deployments, if you can choose between a VM a or a Docker deployment, go with Docker as it brings more flexibility. Deployment on a VM is possible but you need to take care of all the peculiarities of the VM and your app, there is no one setup to fit all cases.