Skip to content

Instantly share code, notes, and snippets.

View grasmash's full-sized avatar

Matthew Grasmick grasmash

  • Annapolis Maryland, USA
  • 12:30 (UTC -04:00)
  • X @grasmash
View GitHub Profile
Pre-requisites:
* Install composer. https://getcomposer.org/download/
* Start a MySQL database. You will need to know the connection credentials.
# Create a local Drupal project
composer create-project --no-interaction acquia/drupal-recommended-project
cd drupal-recommended-project
# At this point, you have a composer.json. Print contents:
cat composer.json
@grasmash
grasmash / .acquia-pipelines.yml
Last active March 28, 2022 19:09
Acquia Pipelines Log forward
version: 1.3.0
services:
- mysql
- php:
version: 7.4
events:
build:
steps:
- log:
@grasmash
grasmash / .INSTALL.md
Last active November 10, 2021 14:39
001-acquia-list-ides.1h.php
@grasmash
grasmash / gist:e3089ef2eff2c6e1f6882f56b16f9b3b
Created October 21, 2020 20:50
Spin up Lando for an Acquia site
git clone [my site]
lando init \
--source cwd \
--recipe drupal9 \
--webroot docroot \
--name my-new-app
lando start
lando ssh
curl -OL https://github.com/acquia/cli/releases/latest/download/acli.phar && chmod +x acli.phar && mv acli.phar /usr/local/bin/acli
acli auth:login
@grasmash
grasmash / existing-project.txt
Last active November 30, 2020 23:47
Setup Acquia Cloud project with Lando
cd my-project
lando init \
--source cwd \
--recipe drupal9 \
--webroot docroot \
--name my-new-app
git add .lando.yml && git commit -m "Adding Lando configuration."
lando start
lando info
// Ensure that your local settings.php file's database credentials match
@grasmash
grasmash / gist:3821e9b66e813a2fa8563b2fcb23fcb5
Last active April 7, 2020 17:57
Create a new Drupal 9 site on Acquia Cloud
composer create-project --no-install drupal/recommended-project:^9.0.0-beta2 .
sed -i'.original' 's/web\//docroot\//g' composer.json && rm composer.json.original
composer require drush/drush:^10.2 drupal/mysql56 --no-update
composer update
<?php
namespace Drupal\gg_migration\Plugin\migrate\source;
use Drupal\migrate\Plugin\migrate\source\SqlBase;
use Drupal\migrate\Row;
/**
* Source plugin for user accounts.
*
From 8fc6248eaa2e401ca88f3d1357b99dda80ba08b1 Mon Sep 17 00:00:00 2001
From: Matthew Grasmick <matt.grasmick@gmail.com>
Date: Fri, 29 Sep 2017 16:16:05 -0400
Subject: [PATCH] Updating theme.
---
docroot/themes/custom/canarycog/.eslintignore | 3 ++-
docroot/themes/custom/canarycog/gulp-tasks/lint-js.js | 14 +++++++-------
docroot/themes/custom/canarycog/gulpfile.js | 3 ++-
docroot/themes/custom/canarycog/package.json | 5 +++++
@grasmash
grasmash / acsf-cm.md
Last active August 22, 2022 15:31
Configuration management best practices for ACSF.

This tutorial covers common use cases for configuration splits as a strategy for configuration management in Drupal 8.

Specifically it covers:

  • Default application configuration
  • Environment specific configuration (e.g., local, data, test, prod, etc.)
  • Site-specific configuration (when multisite is used)
  • "Feature" specific configuration (e.g. a distinct blog feature that is shared across multiple sites). Not to be confused with the features module.
  • Miscellaneous troubleshooting information
{
"license": "proprietary",
"type": "project",
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}
},