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
{ | |
"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
#!/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
//Add to functions.php of your active theme | |
add_filter( 'tribe_events_community_sanitize_submission', 'set_community_events_publication_status' ); | |
function set_community_events_publication_status( $submission ) { | |
// Uncomment one of the lines below to change the default status | |
//$submission['post_status'] = 'publish'; | |
//$submission['post_status'] = 'pending'; | |
return $submission; | |
} |
NewerOlder