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

Build steps in .lando.yml seem to break drush. #228

Closed
serundeputy opened this issue Jul 26, 2017 · 4 comments
Closed

Build steps in .lando.yml seem to break drush. #228

serundeputy opened this issue Jul 26, 2017 · 4 comments
Assignees
Labels
bug Something aint working right!
Milestone

Comments

@serundeputy
Copy link
Collaborator

Bug Report

Tell us about your setup

  • Mac OS
  • Lando: v3.0.0-alpha.18

Tell us about your bug

When I add a build step to my .lando.yml file it prevents drush from working. Here is my .lando.yml:

name: composer-drupal7
recipe: drupal7
config:
  webroot: web
# services:
#   appserver:
#     # Add a Build Step to your App.
#     build:
#       - "cd $LANDO_MOUNT && composer install"

With the build section commented out if I start the app I can use drush normally, but once I add it in and restart the app I can no longer use drush.

Here is the error I receive when trying to use drush:

geoff@yep web $ lando.dev drush st
/bin/sh: 1: drush: not found
error: /bin/sh: 1: drush: not found

but if you comment out the build step from the .lando.yml file, build the app and then add teh build step back in and restart the app you can still use drush. So something is amiss.

@serundeputy serundeputy added the bug Something aint working right! label Jul 27, 2017
@pirog pirog added this to the 3.0.0-beta.2 milestone Jul 29, 2017
@pirog
Copy link
Sponsor Member

pirog commented Jul 30, 2017

@serundeputy i can replicate this. looks like we are merging build steps together during runtime instead of concatenating them

@pirog
Copy link
Sponsor Member

pirog commented Jul 30, 2017

@serundeputy this should be fixed in HEAD

@pirog pirog closed this as completed Jul 30, 2017
@robertgarrigos
Copy link

I just found my self with this same problem with a backdrop recipe with just a services section:

name: okratos
recipe: backdrop
config:
  webroot: www
services:
  pma:
   type: phpmyadmin

with this lando.yml file drush returns the error:
/bin/sh: 1: drush: not found

by commenting the services section:

name: okratos
recipe: backdrop
config:
  webroot: www
#services:
#  pma:
#   type: phpmyadmin

drush runs normaly

@robertgarrigos
Copy link

robertgarrigos commented Aug 27, 2018

Apparently got it fixed by uninstalling docker, lando and delete the ~/.lando dir.

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

3 participants