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

Support Drupal 9 #1993

Open
anavarre opened this issue Feb 21, 2020 · 5 comments · May be fixed by #2003
Open

Support Drupal 9 #1993

anavarre opened this issue Feb 21, 2020 · 5 comments · May be fixed by #2003
Labels

Comments

@anavarre
Copy link
Contributor

@anavarre anavarre commented Feb 21, 2020

Currently, Lando doesn't seem to support Drupal 9.

$ lando init
? From where should we get your app's codebase? current working directory
? What recipe do you want to use?
backdrop
drupal6
drupal7
❯ drupal8
joomla
lamp
laravel

By default, we'd need support for PHP 7.3, MySQL 5.7 and Drush 10 to best support Drupal 9. See https://www.drupal.org/docs/9/how-drupal-9-is-made-and-what-is-included/environment-requirements-of-drupal-9

@anavarre anavarre added the feature label Feb 21, 2020
@BramDriesen

This comment has been minimized.

Copy link
Contributor

@BramDriesen BramDriesen commented Feb 21, 2020

Cant we simply re-use the Drupal 8 template. Like a lot of modules are also just being updated in the .info file and not a whole new module/develop branch.

@mstrelan

This comment has been minimized.

Copy link

@mstrelan mstrelan commented Feb 25, 2020

@BramDriesen yes we just need to update the versions as per OP.

@tormi

This comment has been minimized.

Copy link
Contributor

@tormi tormi commented Feb 25, 2020

D9 is D8 minus deprecated code + new versions of foreign dependencies, so nothing special here.

Install Drupal 9

// Create .lando.yml.
lando init --source cwd --webroot web --name drupal9 --recipe drupal8 --option php=7.3

// Start Lando.
lando start

// Create Composer project within drupal subfolder using Lando's Composer.
lando composer create-project drupal/recommended-project:^9@dev drupal
Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? y

// Move Drupal instance one level up.
mv drupal/* drupal/.* . && rm -rf drupal

// Add the latest Drush.
lando composer require drush/drush

// Install the demo_umami profile.
lando drush si demo_umami --db-url=mysql://drupal8:drupal8@database:3306/drupal8 -y

Drupal 9 site is now available at https://drupal9.lndo.site.

@anavarre

This comment has been minimized.

Copy link
Contributor Author

@anavarre anavarre commented Feb 25, 2020

Plenty of choices are being made ATM, which will influence which LAMP stack will be able to run Drupal 9 sites. I mentioned https://www.drupal.org/docs/9/how-drupal-9-is-made-and-what-is-included/environment-requirements-of-drupal-9 above, but in more details I can think of the following at the very least:

So this means the Lando recipe that would work OOTB for D9 isn't going to be exactly the same as for D8. An alternative would be to bump the default PHP / MySQL version for D8, so we have only one recipe for both major versions.

AaronFeledy added a commit to AaronFeledy/lando that referenced this issue Feb 27, 2020
AaronFeledy added a commit to AaronFeledy/lando that referenced this issue Feb 27, 2020
AaronFeledy added a commit to AaronFeledy/lando that referenced this issue Feb 27, 2020
AaronFeledy added a commit to AaronFeledy/lando that referenced this issue Feb 27, 2020
AaronFeledy added a commit to AaronFeledy/lando that referenced this issue Feb 27, 2020
AaronFeledy added a commit to AaronFeledy/lando that referenced this issue Feb 27, 2020
AaronFeledy added a commit to AaronFeledy/lando that referenced this issue Feb 27, 2020
@AaronFeledy AaronFeledy linked a pull request that will close this issue Feb 27, 2020
4 of 7 tasks complete
@gitressa

This comment has been minimized.

Copy link

@gitressa gitressa commented Mar 21, 2020

Thanks @anavarre and @AaronFeledy for working on this. Drupal 9.0.0-beta1 was released today, and Drupal 9 is on track to be released on June 3 2020.

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

Successfully merging a pull request may close this issue.

5 participants
You can’t perform that action at this time.