FROM:
Recently I was using plumber to make API. But after deployed with docker, if I want to add some new api functions, the thing I have to do is to restart the docker. This makes the service not smooth. Is there any better way?
FROM:
Recently I was using plumber to make API. But after deployed with docker, if I want to add some new api functions, the thing I have to do is to restart the docker. This makes the service not smooth. Is there any better way?
There is nothing built in to the docker file to make this easy. You will have to manage it yourself.
I believe the simplest way is to set up a second docker deployment and adjust a load balancer to point to the new deployment. (Plumber does not provide these tools.) A load balancer should still respect the old deployment and you can shut down the older docker deployment when you feel it is safe.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.