Last active
August 29, 2015 14:08
-
-
Save jubstuff/da0c2a2dffb8d44acea5 to your computer and use it in GitHub Desktop.
wp-cli.yaml for single wordpress install
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
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
# add a trailing slash to /wp-admin | |
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^ - [L] | |
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] | |
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] | |
RewriteRule . index.php [L] |
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/sh | |
wp core download | |
wp core config | |
wp db create | |
wp core install |
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
url: http://wptest.dev | |
color: true | |
apache_modules: | |
- mod_rewrite | |
core download: | |
locale: it_IT | |
path: wp-core | |
core install: | |
title: Test WP | |
description: testwp | |
url: localhost/testwp | |
admin_user: admin | |
admin_password: admin | |
admin_email: [email protected] | |
core multisite-install: | |
title: Test WP | |
description: testwp | |
url: wptest.dev | |
admin_user: admin | |
admin_password: admin | |
admin_email: [email protected] | |
core config: | |
dbuser: user | |
dbpass: password | |
dbname: testwp | |
dbhost: localhost | |
dbprefix: testwp_ | |
locale: it_IT | |
extra-php: | | |
define( 'WP_DEBUG', true ); | |
define( 'WP_POST_REVISIONS', 3 ); | |
define( 'WP_ENV', 'development' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment