GithubHelp home page GithubHelp logo

fusepilot / wordpress-capistrano Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stueccles/wordpress-capistrano

2.0 0.0 0.0 250 KB

Automate your WordPress deploys with Capistrano and Git

Home Page: http://jestro.com

PHP 0.85% Ruby 99.15%

wordpress-capistrano's Introduction

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-content folder of your local wordpress install:
  
    cd LOCAL_WORDPRESS_INSTALL
    rm -rf wp-content
    git clone [email protected]: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"

#the name of this wordpress project set :application, “johndoe_blog” #your repo set :repository, “[email protected]:johndoe/johndoe_blog.git”

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 root password
    • 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 root user
      • A password for the newly created wordpress user
      • A password for the root account of MySQL
  • Once, that’s done, an SSH key will be generated for you. Add this key to your account GitHub project (see http://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 wordpress user’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.php setup for you. You’ll be prompted for the password for the root account 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!

wordpress-capistrano's People

Contributors

jnewland avatar fusepilot avatar

Stargazers

jshc avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.