Skip to content

Commit e180665

Browse files
committed
Update web-base-template to use local.* instead of dev.*
Existing installs using dev.* still works, and you can configure wp-config.php to use whatever you'd like before installing the network. jquery.com already has DNS entries in place for local.*, so this saves a step. fixes jquery/2012-dev-summit#64.
1 parent 1a4a0c6 commit e180665

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,13 @@ This is a set of plugins, themes, and configuration files for jQuery's website i
88

99
```
1010
<VirtualHost *:80>
11-
ServerName dev.jquery.com
11+
ServerName local.jquery.com
1212
ServerAlias *.jquery.com *.jqueryui.com *.jquery.org *.qunitjs.com *.sizzlejs.com *.jquerymobile.com
1313
DocumentRoot "/srv/www/jquery"
1414
</VirtualHost>
1515
```
1616
17-
1. Configure your `/etc/hosts` file to point `dev.jquery.com`, `dev.jqueryui.com`, etc. to your local machine. For example:
18-
19-
```
20-
127.0.0.1 dev.jquery.com dev.api.jquery.com dev.plugins.jquery.com dev.blog.jquery.com dev.learn.jquery.com
21-
127.0.0.1 dev.jqueryui.com dev.blog.jqueryui.com dev.api.jqueryui.com
22-
127.0.0.1 dev.jquery.org dev.qunitjs.com dev.api.qunitjs.com dev.sizzlejs.com dev.jquerymobile.com dev.api.jquerymobile.com
23-
```
24-
25-
Be sure to flush your DNS when you are done. On a Mac, that would be `dscacheutil -flushcache`.
17+
You do not need to configure your `/etc/hosts` file for `local.*` because `jquery.com`'s DNS handles this for you.
2618
2719
1. Place the WordPress core files in the document root you chose. (Don't install it.) You can do this any number of ways:
2820
@@ -69,7 +61,7 @@ This is a set of plugins, themes, and configuration files for jQuery's website i
6961
RewriteRule . index.php [L]
7062
```
7163
72-
1. Go to `http://dev.jquery.com` and walk through the standard WordPress installation. `web-base-template` includes a special install script that will initialize the entire network.
64+
1. Go to `http://local.jquery.com` and walk through the standard WordPress installation. `web-base-template` includes a special install script that will initialize the entire network.
7365
7466
## Auto-Updates
7567
Changes pushed to master will be pulled onto the stage domain.

config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
define( 'JQUERY_STAGING', true );
1313
if ( ! defined( 'JQUERY_STAGING_PREFIX' ) ) {
1414
if ( JQUERY_STAGING )
15-
define( 'JQUERY_STAGING_PREFIX', 'dev.' );
15+
define( 'JQUERY_STAGING_PREFIX', 'local.' );
1616
else
1717
define( 'JQUERY_STAGING_PREFIX', '' );
1818
} elseif ( ! JQUERY_STAGING && JQUERY_STAGING_PREFIX ) {

wp-config-sample.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
define( 'JQUERY_STAGING', true );
11-
define( 'JQUERY_STAGING_PREFIX', 'dev.' );
11+
define( 'JQUERY_STAGING_PREFIX', 'local.' );
1212

1313
// WordPress debugging mode (enables PHP E_NOTICE and WordPress notices)
1414
define( 'WP_DEBUG', (bool) JQUERY_STAGING );

0 commit comments

Comments
 (0)