Difference between revisions of "WordPress Development"
Alex Chapin (talk | contribs) (→Cloning the central repository) |
Alex Chapin (talk | contribs) (→Configuration) |
||
Line 13: | Line 13: | ||
=== Configuration=== | === Configuration=== | ||
+ | # cd to your wordpress directory: <pre>cd ~/public_html/wordpress/</pre> | ||
+ | # Create a local copy of your WordPress configuration<pre>cp wp-config.php-midd wp-config.php</pre><pre>-define('DB_NAME', 'username_wordpress');</pre><pre>+define('DB_NAME', 'yourname_wordpress');</pre><pre>-$base'/';</pre><pre>+$base'/~yourname/wordpress/';</pre> |
Revision as of 16:27, 10 August 2011
WordPress is used at Middlebury by a variety of individuals and groups including faculty, staff, students, administrators, designers, developers, librarians, technologists, academic and administrative departments, offices, student organizations, courses, initiatives, projects and so on. This document compiles recommendations about how Wordpress at Middlebury should be configured, updated and maintained.
Initial Setup
Cloning the central repository
Your ssh keys must be authorized to access the central repository. All chisel accounts' ssh keys have been authorized to do so at the time of this writing. Contact Adam to add ssh keys for other machines (such as your desktop) if desired.
- cd to your public_html directory on chisel:
cd ~/public_html/
- clone the repository and create a working directory with git-clone:
git clone git@chisel.middlebury.edu:wordpress-mu.git wordpress
- cd into new wordpress directory
cd wordpress
- initialize submodules and then update:
git submodule init
git submodule update
Configuration
- cd to your wordpress directory:
cd ~/public_html/wordpress/
- Create a local copy of your WordPress configuration
cp wp-config.php-midd wp-config.php
-define('DB_NAME', 'username_wordpress');
+define('DB_NAME', 'yourname_wordpress');
-$base'/';
+$base'/~yourname/wordpress/';