kamal icon indicating copy to clipboard operation
kamal copied to clipboard

Setup on specific role or server doesn't work

Open a3kov opened this issue 1 year ago • 0 comments

I have a server with my app and accessories (postgres) on it. I need to setup a new server with a new accessory. The new server has it's own non-web role. The new accessory is only defined for the new server.

servers:
  web:
  - MAIN IP
  new-role:
  - MY_NEW_SERVER_IP

However:

  • if I try to run kamal setup -h MY_NEW_SERVER_IP Kamal is trying to compile and deploy my app to the new server. I understand that the assumption is all roles run the app by default, but how to set up a single accessory-only server otherwise ? Kamal should not assume every server runs the app, it's simply wrong. Or is it expected that we should use more than 1 deployment software - Kamal for the app, and another one for other services ?

  • if I try to run kamal setup -r new-role Kamal is trying to setup postgres on my main server. This is simply broken, but even if it's fixed, it's still not good enough, because there's no way to setup a single server this way (a role can have more than 1 server)

$ kamal version
2.2.2

a3kov avatar Oct 24 '24 15:10 a3kov