version: 2.1
jobs:
build:
docker:
- image: circleci/node:10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CircleCI Example: | |
``` | |
version: 2.1 | |
jobs: | |
build: | |
docker: | |
- image: circleci/node:10 | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Terminus | |
on: | |
push: | |
pull_request: | |
repository_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
# Checkout in separate job because docker image is alpine based and checkout action doesn't work. | |
checkout: |
This tutorial is for you if you meet the following criterion:
-
You have an external repository outside of pantheon that manages your site's code.
-
You use a build service like Github Actions, Circle CI or Travis to "build" the site.
-
Those build artifacts are pushed to your pantheon repo.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "** If terminus is set up incorrectly on this machine, the database download will fail. **" | |
export BACKUP_FILE_NAME=backup.sql.gz | |
export DATABASE_NAME=drupal8 | |
export PANTHEON_SITE_NAME=${milken-institute} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Drupal\knowledge_center\Plugin\rest\resource\Categories__1_0 | |
*/ | |
namespace Drupal\knowledge_center\Plugin\rest\resource; | |
use Drupal\knowledge_center\utility\RMRestResponse; | |
use Drupal\openapi\OpenApiGenerator\RestInspectionTrait; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<!-- | |
| | |
| This file will allow you to create a .jsx component without actually setting up a dev environment. | |
| | |
| | |
--> | |
<head lang="en"> | |
<meta charset="UTF-8"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd ~/Sites | |
composer create-project drupal-composer/drupal-project:8.x-dev legacy8 --stability dev --no-interaction | |
cd legacy8 | |
composer require drupal/address | |
composer require drupal/cdn | |
composer require drupal/crop | |
composer require drupal/diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mantra_title_and_description() { | |
$mantra_options = mantra_get_theme_options(); | |
foreach ($mantra_options as $key => $value) { ${"$key"} = $value; } | |
// Header styling and image loading | |
// Check if this is a post or page, if it has a thumbnail, and if it's a big one | |
global $post; | |
if (get_header_image() != '') { $himgsrc = get_header_image(); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 59e8b8ae778d1511af39caa677bebf81cfbe45ca Mon Sep 17 00:00:00 2001 | |
From: Tom Stovall <[email protected]> | |
Date: Sat, 24 Oct 2015 16:51:31 -0700 | |
Subject: [PATCH] 2488180-mysql-utf8mb4-support-reroll-for-7.41 | |
--- | |
includes/database/mysql/database.inc | 9 +++++---- | |
includes/database/mysql/schema.inc | 11 ++++++++++- | |
sites/default/default.settings.php | 15 +++++++++++++++ | |
3 files changed, 30 insertions(+), 5 deletions(-) |
NewerOlder