Score:0

Should I "composerize" my installation?

fr flag

So; having been involved with a D7 / CiviCRM build a number of years ago, I started building a D10/CiviCRM build as a project to suggest to my local organisation.

I think I might have caused myself an issue though, as I installed D10 manually, then went on to install CiviCRM using composer.

  • I have D10 installed on my VPS at /var/www/html/[site]
  • I have CiviCRM installed at /home/[user]/

So the question really is; should I composerize D10 and move it to the home/[user] folder? Would using composer to update Civi break my D10 if I continued manually updating it?

Score:1
cn flag

Yes, you should basically always use Composer to install Drupal 10+.

Midway through the Drupal 8 development cycle, composer use became mainstream, and now some contrib modules only support installation via composer. Even if you are not using such modules, the documentation will assume you have a composer installation and installing manually may lead to difficult to debug issues. It is also slower than using composer once you get the hang of it.

Although the above comments are about Drupal 10 in general, the CiviCRM docs also state that you should use composer to install Drupal.

As an aside, composer pairs well with git, so you can commit your composer.lock and use that to deploy to your VPS from your local machine, which is less error prone and faster (once set up) than manually updating.

Darren Whittenham-Gray avatar
fr flag
Thanks. When I went to the download page for D10, I saw the composer install options, but with the tarball immediately underneath it, I presumed it was more optional. Having now looked at the various ways of moving Drupal to composer, it appears I would be better off completely wiping the build and starting again.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.