Skip to content

Instantly share code, notes, and snippets.

Chris Free chrisfree

Block or report user

Report or block chrisfree

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chrisfree
chrisfree / labels.json
Last active Jan 25, 2019
Chromatic's Default GitHub Labels
View labels.json
[
{
"name": "1-Emergency / 911",
"color": "#911f1f"
},
{
"name": "2-Critical",
"color": "#f46541"
},
{
@chrisfree
chrisfree / drush-s3cmd.sh
Created Feb 11, 2016
Backup a Drupal site to Amazon S3 using Drush
View drush-s3cmd.sh
# 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.
@chrisfree
chrisfree / drupal-8-drush-deployment.sh
Created Jan 8, 2016
Example Drupal 8 Deployment with Drush
View drupal-8-drush-deployment.sh
#!/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."
View gist:6affb7517f67586d721a
---
- hosts: Chromatic-Demo-1
gather_facts: true
roles:
- base-os
- new-user
- apache2
- php55
- drush
- redis-server
You can’t perform that action at this time.