Code Monkey home page Code Monkey logo

drupal-9-with-circleci-orb's Introduction

Drupal 9 with Pantheon's Build Tools and CircleCI Orb

Minimal Support

This repository is a stripped down version of the fuller pantheon-systems/example-drops-8-composer which shows how Drupal 8 can be run on Pantheon with various git hosts and CI services using Pantheon's Build Tools. This repo shows only Drupal 9 + GitHub + Pantheon and uses Build Tools wrapped in Pantheon CircleCI Orb.

Warning: Drupal 9 sets a higher required version for MariaDB than is currently available on Pantheon. This repository uses patches to circumvent installation errors related to the database version. Pantheon engineering is working to make a higher version available in the coming months. Until the higher version is available, we do not recommend switching your production websites to Drupal 9.

To create a copy of this repository including a separate GitHub repo, a CircleCI configuration, and a Pantheon sandbox, run this command. Be sure to replace machine-name-for-new-site with a machine name of your choice.

terminus build:project:create "pantheon-systems/drupal-9-with-circleci-orb:dev-master" machine-name-for-new-site --stability=dev --team='optional-pantheon-organization-name' 

After that command completes, verify that Drupal 9 has been installed in the Pantheon Dev environment by visiting it in your browser. this command will get you a one-time log in link that that environment. Be sure to replace machine-name-for-new-site with the machine name you chose above.

terminus drush machine-name-for-new-site.dev -- user-login

Next, deploy to the Pantheon Test and Live environments. When pull requests are created on your GitHub repo they will generate Multidev environments on Pantheon that clone the database and files from the Live environment. Be sure to replace machine-name-for-new-site with the machine name you chose above.

terminus env:deploy machine-name-for-new-site.test
terminus env:deploy machine-name-for-new-site.live

drupal-9-with-circleci-orb's People

Contributors

greg-1-anderson avatar kporras07 avatar stevector avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drupal-9-with-circleci-orb's Issues

Not compatible with Composer Version 2.

Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- cweagans/composer-patches is locked to version 1.6.7 and an update of this package was not requested.
- cweagans/composer-patches 1.6.7 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
- zaporylie/composer-drupal-optimizations is locked to version 1.1.1 and an update of this package was not requested.
- zaporylie/composer-drupal-optimizations 1.1.1 requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

Error on install 18/24 -- In install.core.inc line 2298: Database settings: Array

Using following command to initialise:

terminus build:project:create "pantheon-systems/drupal-9-with-circleci-orb:dev-master" manarock --stability=dev --team='Mana Rock Limited' --region eu --org="manarockltd" [build.txt](https://github.com/pantheon-systems/drupal-9-with-circleci-orb/files/6264078/build.txt)

eventually errors with (at step 18):

`18/24 [=====================>------] 75% [notice] Install site on manarock.dev
[notice] Enabled on-server development via SFTP for "dev"
[notice] - drush site-install --yes --account-mail='[email protected]' --account-name=admin --account-pass="[REDACTED]" --site-mail='[email protected]' --site-name=manarock
Warning: Permanently added '[appserver.dev.2037e926-8d0f-4d18-aec3-be74dd8b61a3.drush.in]:2222,[34.91.25.187]:2222' (RSA) to the list of known hosts.
dev.2037e926-8d0f-4d18-aec3-be74dd8b61a3@appserver.dev.2037e926-8d0f-4d18-aec3-be74dd8b61a3.drush.in's password:

// You are about to DROP all tables in your 'pantheon' database. Do you want to
// continue?: yes.

[notice] Starting Drupal installation. This takes a while.

In install.core.inc line 2298:

Database settings:

Array

site:install [--db-url DB-URL] [--db-prefix DB-PREFIX] [--db-su DB-SU] [--db-su-pw DB-SU-PW] [--account-name [ACCOUNT-NAME]] [--account-mail [ACCOUNT-MAIL]] [--site-mail [SITE-MAIL]] [--account-pass ACCOUNT-PASS] [--locale [LOCALE]] [--site-name [SITE-NAME]] [--site-pass SITE-PASS] [--sites-subdir SITES-SUBDIR] [--config-dir CONFIG-DIR] [--existing-config] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--xh-link XH-LINK] [--notify] [--druplicon] [--] [...]

[CompletionWrapper] Install site failed with exit code 1
[CompletionWrapper] Exit code 1
24/24 [============================] 100%`

Any thoughts on resolution, or is this solely an issue with the build process as opposed to anything else?

Am now in a position where I have an environment on .dev on pantheon, installer tries to run if you visit it, a repo on git hub (empty) and nothing on CircleCi. If I can manually complete without issue at this point I would - but need to be sure that I will have the correct end state.

Complete build log also attached.

Remove database warning in readme once terminus build:project:create results in a site with a higher version of mysql.

The README currently says:

Warning: Drupal 9 sets a higher required version for MariaDB than is currently available on Pantheon. This repository uses patches to circumvent installation errors related to the database version. Pantheon engineering is working to make a higher version available in the coming months. Until the higher version is available, we do not recommend switching your production websites to Drupal 9.

We should be able to remove this warning after pantheon-systems/terminus-build-tools-plugin#368 is done.

After Sftp mode code stop to update

Hello,
we are using early access of the Pantheon Drupal9 server and faced an issue as was discovered with SFTP.
After switching on SFTP and changing files by it we could saw changes on a server but after switching back to GIT mode they disappeared.
We think that our codebase on the Pantheon environment not updating after changing of push mode.
Here is some log:
https://monosnap.com/direct/OV7wKbXhOd4iQDy037WTwHSAHJ99lK
https://monosnap.com/direct/ZEyemZWhfOfdMYDt68sIJHgaq0jjtt

After we delete this environment and try to create a new one on this branch pantheon don't create it.
https://monosnap.com/direct/d8kXsgzhE64j2BkxkS4Li4tHUMh5jG
https://monosnap.com/direct/gNVqBWurypLC9KrTb3kFV8Gg1KrOI6
we can see it in the list of branches but pantheon sad that we have one already:
https://monosnap.com/direct/3IolA9BzCairbqQ4PrG1rJOfjHNcbJ
https://monosnap.com/direct/dLydVSnOxO4aJjcQfioLWdWwECrd7P
Also, we don't have the ability to delete this branch:
https://monosnap.com/direct/v0MousMEhgTSSfpLj8ZLLpCYUVDUA0

Please, look into it!
Thanks.

Best regards!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.