Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can the default path of lando ssh be changed? #207

Open
ayalon opened this issue Jul 11, 2023 · 2 comments
Open

How can the default path of lando ssh be changed? #207

ayalon opened this issue Jul 11, 2023 · 2 comments
Labels

Comments

@ayalon
Copy link

ayalon commented Jul 11, 2023

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?

@reynoldsalec
Copy link
Sponsor Member

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.

@AaronFeledy
Copy link
Contributor

AaronFeledy commented Jan 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants