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

lando composer require abc/def installs to wrong folder, if webroot is set to a folder and not . #3574

Open
lukastom opened this issue May 27, 2023 · 2 comments
Labels
bug Something aint working right!

Comments

@lukastom
Copy link

lukastom commented May 27, 2023

How to reproduce:

  1. in .lando.yml, set webroot to a folder, e.g. webroot: blog/public
    (let us say, we have a path /home/user/Sites/Laravel-Blog/blog/ in which is our Laravel installation)
  2. go to your folder, where you run "lando start", e.g. /home/user/Sites/Laravel-Blog
  3. start lando, run lando composer require abc/def
  4. the composer packages are not installed in the webroot folder ("/blog") but in the folder "Laravel-Blog".
    If I am not mistaken, lando composer should respect the webroot path. The workaround is to do lando ssh, cd in the roght path and run composer there.
@lukastom lukastom added the bug Something aint working right! label May 27, 2023
@FredrikMBP
Copy link

Running any lando command will do so in the current folder except lando start / stop, which will traverse down to find a .lando.yml.
CD into the correct path and then run lando composer require abc/def just as you would if you run it with PHP directly

@lukastom
Copy link
Author

Thank you! I didn't realize there is no need to ssh into but I can just cd there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something aint working right!
Projects
None yet
Development

No branches or pull requests

2 participants