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
{ | |
"entry": { | |
"main": [ | |
"./scripts/main.js", | |
"./styles/main.scss" | |
], | |
"customizer": [ | |
"./scripts/customizer.js" | |
] | |
}, <= This 'publicPath' is for 'Bedrock' setups. |
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
. | |
├── CHANGELOG.md | |
├── LICENSE.md | |
├── README.md | |
├── app/ | |
│ ├── admin.php | |
│ ├── filters.php | |
│ ├── helpers.php | |
│ ├── lib | |
│ └── setup.php |
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
. | |
└── wcdc17 | |
├── CHANGELOG.md | |
├── LICENSE.md | |
├── README.md | |
├── app/ | |
├── composer.json | |
├── composer.lock | |
├── package.json | |
├── phpcs.xml |
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 | |
BACKUP_DATE=$(date +%Y%m%d%H%M%S) | |
if [[ $CI_RELEASE ]]; then | |
BACKUP_DATE=$CI_RELEASE | |
fi | |
drush sql-dump > ../db/$BACKUP_DATE.sql |
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
before_script: | |
- git clone https://git.caseydris.co/casey/drupal-runner.git steps | |
- chmod -R 775 steps | |
- export CI_RELEASE=$(date +%Y%m%d%H%M%S) | |
build_stage: | |
stage: build | |
script: | |
- steps/deploy $STAGE_PATH $CI_RELEASE | |
- steps/harden $STAGE_PATH $CI_RELEASE |
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
server { | |
listen 80; | |
server_name caseydris.co www.caseydris.co; | |
root /srv/www/caseydris.co/public_html; | |
include global/redirect.conf; | |
} | |
server { | |
listen 443 ssl http2; |
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
server { | |
listen 80; | |
server_name caseydris.co www.caseydris.co; | |
return 301 https://$host$request_uri; | |
} |
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
location /.well-known/acme-challenge/ { | |
try_files $uri /dev/null =404; | |
} | |
location / { | |
return 301 https://$host$request_uri; | |
} |
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
class Print < ApplicationRecord | |
has_many :project_print | |
has_many :projects, :through => :project_print | |
attr_accessor :title, :left_photo_id, :right_photo_id | |
end |
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
// Edit 0 - 2015-11-05 16:55:34 - Init | |
// Edit 1 - 2015-11-05 17:04:18 - Add global and short circuit | |
// Edit 2 - 2015-11-05 17:17:44 - Add is_tree | |
// Edit 3 - 2015-11-05 17:39:14 - Remove is_tree, use get_post_ancestors | |
// Hook into the 'body_class' filter with the name of a unique function | |
add_filter( 'body_class', 'page_parent_specific_body_classes' ); | |
// Callback function for adding a class to the body element |
NewerOlder