kamal icon indicating copy to clipboard operation
kamal copied to clipboard

specify one of `host`, `hosts` or `roles` : is roles still a valid key for accessories?

Open adrienpoly opened this issue 1 year ago • 2 comments

I was trying to make this configuration so that Meilisearch is available in the web and job network.

accessories:
  search:
    image: getmeili/meilisearch:v1.10
    roles:
      - web
      - job
    env:
      clear:
        MEILI_ENV: production

I am getting the error

ERROR (Kamal::ConfigurationError): accessories/search: specify one of `host`, `hosts` or `roles`

Is roles deprecated in V2?

adrienpoly avatar Oct 25 '24 11:10 adrienpoly

Roles still work for me. Also the message itself suggests specify one of host, hosts or roles so maybe the formatting or white space is wrong?

strzibny avatar Oct 26 '24 09:10 strzibny

Ok I investigated again, I don't think I have a formatting error but something is very strange as the issues seems to come and go.

I cannot get a full reproduction env yet but working on it

adrienpoly avatar Oct 28 '24 09:10 adrienpoly

Closing this for now as I can't reproduce it. Do re-open if you have more information 👍

djmb avatar Nov 21 '24 11:11 djmb