Drupal 10 and Composer

To access a remote server via the command line on a Mac, you can use the ssh command in the Terminal.

  1. Open Terminal. 2.Connect via SSH: Type the following command in the Terminal: ssh untilyouownit@IP IP address can be found in Keeper under Ownit SFTP
  2. Enter Password: When prompted, enter the password. Password found in Keeper.

Once you’re connected to your server via SSH, accessing Composer to manage a Drupal 10 site involves a few steps. Here’s how you can proceed:

Common composer commands:

  1. Use cd to access the file path to the site. cd untilyouownit
  2. Update Drupal and its dependencies: composer update
  3. Require a new module (e.g., a module called “devel”): composer require ‘drupal/devel’
  4. Update a specific module: composer update drupal/modulename (Name of module)
  5. Apply security updates only: composer update –with-dependencies –dry-run (This command shows what updates will be applied without actually applying them.)
  6. Clear Drupal Cache: After updating or adding modules, it’s often necessary to clear the Drupal cache. You can do this via Drush, another tool commonly used with Drupal. If Drush is installed, you can run: drush cr
  7. Composer Version: composer –version (We are current on version 2.6.5 2023-10-06 10:11:52)

Drupal Core update:

  1. Backup the site and database. This can be done with composer or manually.
  2. Drupal core and its dependencies: composer update drupal/core-recommended –with-dependencies
  3. Apply Security Updates: If you want to limit updates to only security releases, you can specify so by using the following command: composer update drupal/core-recommended –with-dependencies –dry-run (Remove –dry-run to actually apply the updates after reviewing them.)
  4. Using Drush to Update Database: After updating the Drupal core files, you might need to update the database: drush updatedb

Add new Podcast

  1. Login to the website https://untilyouownit.com/user/login User Name and Password can be found in Keeper.
  2. Locate under “content” dropdown “Podcast Config”
  3. Remove current “podcast image” and replace with the new one.
  4. Replace the “podcast embed” iframe with the new one.
  5. Click the “Save Configuration” button.