kamal icon indicating copy to clipboard operation
kamal copied to clipboard

is it possible realese branch-based deployment on stage server with subdomains?

Open vldmr-k opened this issue 1 year ago • 1 comments

In my company, we use branch-based deployment for development process. For example, when developer release big feature, he create branch <number>-task, and push code and branch to the github. Our CI/CD system deploy application to stage server, and generate config for nginx with subdomain. After that, application available on domain: <number>-task.dev.example.com

My questions are:

  1. While reading the docs I saw that I can config treafik host. Can I generate host value dynamyc? E.g.: Host('${breanch}.dev.example.com')?
  2. Can kamal run 2-3-4 different versions the same application on the server?

Thanks.

vldmr-k avatar Dec 15 '23 15:12 vldmr-k

Re: #1 I don't think you'd be able to do fully dynamic branch deploys but you could configure a bunch of destinations/servers and deploy to those. Re: #2 yes, you can run multiple instances of the same application you'd just have another server definition, something like web_0, web_1, etc.

nickhammond avatar Jan 05 '24 16:01 nickhammond