| CARVIEW |
jestro / wordpress-capistrano
- Source
- Commits
- Network (10)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
Branches (1)
- master ✓
- Tags (0)
| name | age | message | |
|---|---|---|---|
| |
Capfile | Wed Dec 17 16:18:29 -0800 2008 | fix ssh host key prompt [jnewland] |
| |
Readme.textile | Sat Jul 11 20:36:27 -0700 2009 | update readme [jestro] |
| |
index.php | Mon Nov 17 16:46:45 -0800 2008 | directory structure [jnewland] |
| |
lib/ | Thu Dec 18 20:17:55 -0800 2008 | fix permissions [jnewland] |
| |
plugins/ | Mon Nov 17 16:54:19 -0800 2008 | add blank plugins directory [jnewland] |
| |
themes/ | Tue Dec 02 19:23:43 -0800 2008 | new readme file [jestro] |
Summary
This repository is intended for use as a template for your WordPress projects. By following these instructions you can quickly and easily deploy WordPress using Git and Capistrano.
Setup
For this example, we’ll assume your GitHub username is johndoe and you wanted to setup a WordPress blog at johndoe.example.com:
- Fork this repo
- Make your project private, and rename it your project name. Say,
johndoe_blog, for example. - Clone your fresh repo into the
wp-contentfolder of your local wordpress install:
cd LOCAL_WORDPRESS_INSTALL
rm -rf wp-content
git clone git@github.com:johndoe/johndoe_blog.git wp-content
cd wp-content
- Adjust the settings in
Capfile
<pre>
#the domain name for the server you'll be running wordpress on
set :domain, "johndoe.example.com"
Once all that’s done, commit and push it back to GitHub. Then hack on your WordPress theme and drop your plugins as normal, committing and pushing as you go.
Setting up a LAMP Stack on a CentOS 5.2 Server
Once you’re ready to rock, pick up a server from Slicehost or something.
cap setup:server- You’ll first be prompted for your
rootpassword - A bunch of stuff will get installed. Go get a beer. Don’t worry, you can bill your client for this – you’re &lgt;airqotes&rgt;busy setting up their server&lgt;/airqotes&rgt;
- After lots of installing of lots of stuff, you’ll be asked for a couple things:
- A new password for your
rootuser - A password for the newly created
wordpressuser - A password for the
rootaccount of MySQL
- A new password for your
- You’ll first be prompted for your
- Once, that’s done, an SSH key will be generated for you. Add this key to your account GitHub project (see https://github.com/guides/understanding-deploy-keys for why we reccomend this instead of a ‘deploy key’).
To setup WordPress on your server
cap setup:wordpress
- You’ll first be prompted for your
wordpressuser’s password. - You’ll then be prompted for a database name, username, and password for this WordPress site. This database will be created and
wp-config.phpsetup for you. You’ll be prompted for the password for therootaccount of MySQL before to run this command.
To deploy your WordPress site to your server
cap deploy
That’s it, seriously. Hit the server url you setup in your Capfile, and run through the WordPress install process! If you update your themes / plugins, just commit and push them to GitHub, then run cap deploy again!

