Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Convert Drush aliases to Drush 9 syntax (fixes #326). #332

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tormi
Copy link
Member

@tormi tormi commented Apr 3, 2019

Fixes #326.

Done

  • refactor .lando.yml
  • refactor build.sh
  • convert aliases using site:alias-convert
  • update Setup.md

Todo

Questions

@tormi tormi requested a review from tharna April 3, 2019 13:24
@tormi tormi self-assigned this Apr 3, 2019
@tormi tormi changed the title WIP: Convert Drush aliases to Drush 9 syntax (fixes #326). Convert Drush aliases to Drush 9 syntax (fixes #326). Apr 3, 2019
@tormi tormi removed their assignment Apr 3, 2019
@@ -27,11 +27,11 @@ popd > /dev/null
# Parse project config
PROJECTCONF=$ROOT/conf/project.yml
eval $(parse_yaml $PROJECTCONF)
ALIASFILE=${project_name}.aliases.drushrc.php
ALIASTARGET=$HOME/.drush/$ALIASFILE
ALIASFILE=self.site.yml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alias filename should be unique across projects, otherwise only the first one will work as later projects are unable to create their alias file.

@@ -0,0 +1,51 @@
# Docs at https://github.com/drush-ops/drush/blob/master/examples/example.site.yml

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be Lando specific environment here as well?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lando drush command is the correct way to run drush inside lando. There should generally be no need to run drush on the host.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this also work for running drush commands on remote servers?

@tormi tormi requested a review from evilfurryone April 4, 2019 06:13
@@ -0,0 +1,10 @@
#!/bin/bash

export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense to keep the old PATH as well or is this not important?

export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:$PATH

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

Successfully merging this pull request may close these issues.

4 participants