Last active
August 29, 2015 14:23
-
-
Save homosaur/f1aa28c844a601a8fbe5 to your computer and use it in GitHub Desktop.
STL WordPress Meetup July 2015
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
*~ | |
.DS_Store | |
.svn | |
.cvs | |
*.bak | |
*.swp | |
Thumbs.db | |
# wordpress specific | |
wp-config.php | |
wp-content/uploads/ | |
wp-content/blogs.dir/ | |
wp-content/upgrade/* | |
wp-content/backup-db/* | |
wp-content/advanced-cache.php | |
wp-content/wp-cache-config.php | |
wp-content/cache/* | |
wp-content/cache/supercache/* | |
# wp core (as of 3.4.1) | |
/db-config.php | |
/index.php | |
/license.txt | |
/readme.html | |
/wp-activate.php | |
/wp-app.php | |
/wp-atom.php | |
/wp-blog-header.php | |
/wp-comments-post.php | |
/wp-commentsrss2.php | |
/wp-config-sample.php | |
/wp-cron.php | |
/wp-feed.php | |
/wp-links-opml.php | |
/wp-load.php | |
/wp-login.php | |
/wp-mail.php | |
/wp-rdf.php | |
/wp-rss.php | |
/wp-rss2.php | |
/wp-pass.php | |
/wp-register.php | |
/wp-settings.php | |
/wp-signup.php | |
/wp-trackback.php | |
/xmlrpc.php | |
/wp-admin | |
/wp-includes | |
/wp-content/index.php | |
/wp-content/themes/* | |
/wp-content/plugins/* | |
# don't ingore these themes and plugins | |
!/wp-content/themes/mytheme | |
!/wp-content/plugins/commercial-plugin | |
!/wp-content/plugins/custom-plugin | |
# large/disallowed file types | |
# a CDN should be used for these | |
*.hqx | |
*.bin | |
*.exe | |
*.dll | |
*.deb | |
*.dmg | |
*.iso | |
*.img | |
*.msi | |
*.msp | |
*.msm | |
*.mid | |
*.midi | |
*.kar | |
*.mp3 | |
*.ogg | |
*.m4a | |
*.ra | |
*.3gpp | |
*.3gp | |
*.mp4 | |
*.mpeg | |
*.mpg | |
*.mov | |
*.webm | |
*.flv | |
*.m4v | |
*.mng | |
*.asx | |
*.asf | |
*.wmv | |
*.avi |
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
*.log | |
.htaccess | |
sitemap.xml | |
sitemap.xml.gz | |
wp-config.php | |
wp-content/advanced-cache.php | |
wp-content/backup-db/ | |
wp-content/backups/ | |
wp-content/blogs.dir/ | |
wp-content/cache/ | |
wp-content/upgrade/ | |
wp-content/uploads/ | |
wp-content/wp-cache-config.php | |
wp-content/plugins/hello.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
## Tools | |
* [WordPress Packagist](http://wpackagist.org/) - Plugin Mangagment with Composer | |
* [Composer](https://getcomposer.org/) | |
* [WP CLI](http://wp-cli.org/) | |
* [WP Migrate DB](https://wordpress.org/plugins/wp-migrate-db/) | |
* [All In One WP Migration](https://wordpress.org/plugins/all-in-one-wp-migration/) | |
* [UpdraftPlus](https://wordpress.org/plugins/updraftplus/) | |
* [PHP dotenv](https://github.com/vlucas/phpdotenv) | |
## Modern WP Stack | |
* [hoboPress](https://github.com/bytefair/hoboPress) - Simple Modernized WP | |
* [Bedrock](https://roots.io/bedrock/) - Comprehensive Modernized WP |
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 | |
TEMP=$HOME/tmp | |
APPDIR=$HOME/public_html | |
rm -rf $TEMP | |
git clone $HOME/app.git $TEMP | |
composer install -d $TEMP | |
# theme build goes here | |
# scripted DB migration can also go here | |
rm -rf $APPDIR/* | |
rm -rf $TEMP/.git $TEMP/.editorconfig $TEMP/.env.sample $TEMP/.gitignore $TEMP/composer.* $TEMP/Vagrantfile | |
cp -R $TEMP/* $APPDIR | |
cp $HOME/.env $APPDIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment