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
--- | |
- hosts: Chromatic-Demo-1 | |
gather_facts: true | |
roles: | |
- base-os | |
- new-user | |
- apache2 | |
- php55 | |
- drush | |
- redis-server |
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/bash | |
echo "" | |
echo "Switching to project docroot." | |
cd /var/www/chromatichq.com/docroot | |
echo "" | |
echo "Pulling down the latest code." | |
git pull origin master | |
echo "" | |
echo "Clearing drush caches." |
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
# Switch to the docroot. | |
cd /var/www/yourProject/docroot/ | |
# Backup the database. | |
drush sql-dump --gzip --result-file=/home/yourJenkinsUser/db-backups/yourProject-`date +%F-%T`.sql.gz | |
# Switch to the backups directory. | |
cd /home/yourJenkinsUser/db-backups/ | |
# Store the recently created db's filename as a variable. |
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": "1-Emergency / 911", | |
"color": "#911f1f" | |
}, | |
{ | |
"name": "2-Critical", | |
"color": "#f46541" | |
}, | |
{ |
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 | |
namespace Drupal\chromatic_lazyload\Plugin\Filter; | |
use Drupal\Component\Utility\Html; | |
use Drupal\filter\FilterProcessResult; | |
use Drupal\filter\Plugin\FilterBase; | |
/** | |
* Filter for altering hard-coded images to support native browser lazy loading. |