From 2c48a181596b96cd34bfab472bc2af3613c5e995 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sat, 26 May 2012 02:58:27 -0400 Subject: [PATCH] Initial commit --- .gitignore | 6 ++++ .gitmodules | 3 ++ .htaccess | 10 ++++++ README.md | 27 ++++++++++++++ content/themes/twentyeleven | 1 + content/themes/twentyten | 1 + content/uploads | 1 + index.php | 4 +++ wp | 1 + wp-config.php | 70 +++++++++++++++++++++++++++++++++++++ 10 files changed, 124 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 .htaccess create mode 100644 README.md create mode 120000 content/themes/twentyeleven create mode 120000 content/themes/twentyten create mode 120000 content/uploads create mode 100644 index.php create mode 160000 wp create mode 100644 wp-config.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..351a156 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/shared +/local-config.php +/sql-dump-*.sql +/db-sync +/content/upgrade/ +.DS_Store \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..df8a4f9 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "wp"] + path = wp + url = git://github.com/WordPress/WordPress.git diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..5561134 --- /dev/null +++ b/.htaccess @@ -0,0 +1,10 @@ + +# BEGIN WordPress + +RewriteEngine On +RewriteBase / +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /index.php [L] + +# END WordPress diff --git a/README.md b/README.md new file mode 100644 index 0000000..a3d570e --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# WordPress Skeleton + +This is simply a skeleton repo for a WordPress site. Use it to jump-start your WordPress site repos, or fork it and customize it to your own liking! + +## Assumptions + +* WordPress as a Git submodule in `/wp/` +* Custom content directory in `/content/` (cleaner, and also because it can't be in `/wp/`) +* `wp-config.php` in the root (because it can't be in `/wp/`) +* All writable directories are symlinked to similarly named locations under `/shared/`. + +## Questions & Answers + +**Q:** Will you accept pull requests? +**A:** Maybe. I made this for my own use, and thought people might find it useful. It you want to take it in a different direction and make your own customized skeleton, then just maintain your own fork. + +**Q:** Why the `/shared/` symlink stuff for uploads? +**A:** For local development, create `/shared/` (it is ignored by Git), and have the files live there. For production, have your deploy script (Capistrano is my choice) look for symlinks pointing to `/shared/` and repoint them to some outside-the-repo location (like an NFS shared directory or something). This gives you separation between Git-managed code and uploaded files. + +**Q:** What version of WordPress does this track? +**A:** The latest stable release. Send a pull request if I fall behind. + +**Q:** What's the deal with `local-config.php`? +**A:** It is for local development, which might have different MySQL credentials or do things like enable query saving or debug mode. This file is ignored by Git, so it doesn't accidentally get checked in. If the file does not exist (which it shouldn't, in production), then WordPress will used the DB credentials defined in `wp-config.php`. + +**Q:** Does this support WordPress in multisite mode? +**A:** No. Not until WordPress supports WordPress-in-a-subdirectory installation for multisite. If you're a WordPress hacker who wants to help with that feature, drop me a line! diff --git a/content/themes/twentyeleven b/content/themes/twentyeleven new file mode 120000 index 0000000..b26801a --- /dev/null +++ b/content/themes/twentyeleven @@ -0,0 +1 @@ +../../wp/wp-content/themes/twentyeleven/ \ No newline at end of file diff --git a/content/themes/twentyten b/content/themes/twentyten new file mode 120000 index 0000000..6faf9aa --- /dev/null +++ b/content/themes/twentyten @@ -0,0 +1 @@ +../../wp/wp-content/themes/twentyten/ \ No newline at end of file diff --git a/content/uploads b/content/uploads new file mode 120000 index 0000000..a54fbda --- /dev/null +++ b/content/uploads @@ -0,0 +1 @@ +../shared/content/uploads \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..5877d18 --- /dev/null +++ b/index.php @@ -0,0 +1,4 @@ +