cli icon indicating copy to clipboard operation
cli copied to clipboard

How can the default path of lando ssh be changed?

Open ayalon opened this issue 1 year ago • 2 comments

I have a custom mount for my image.

    type: node:18
    app_mount: false
    overrides:
      volumes:
        - "./frontend:/nuxt"

This works but when I do lando ssh I'm always at /app which is empty. How can I tell lando to go to /nuxt when I login?

ayalon avatar Jul 11 '23 13:07 ayalon

I don't think this is possible in Lando v3, but I do know that having a configurable app root is part of Lando v4's spec.

reynoldsalec avatar Jan 08 '24 19:01 reynoldsalec

As a workaround you could make your own alternate tooling command that does this. Something like this:

services:
  front:
    type: node:18
    app_mount: false
    overrides:
      volumes:
        - "./frontend:/nuxt"

tooling:
  ssh-front:
    service: front
    cmd: bash
    dir: /nuxt

AaronFeledy avatar Jan 08 '24 23:01 AaronFeledy