Deploy WordPress & Drupal Using Capistrano

17 Comments

Capistrano is an awesome tool to have in your toolbox. It was originally developed to simplify and automate the deployment of Rails web applications. Featuring built in support for typical deployment scenarios, it is also flexible enough to allow you to completely override certain behaviors. That being the case, it can be used to deploy non-Rails web application like those built on the Drupal and WordPress CMS platforms.

Getting Started

In order to use Capistrano, you must first install ruby and the ruby gem system. Now we can install the Capistrano gem along with the Rails-less-deploy gem which will allow use to remove all of the built-in Rails-specific behavior.

Now that Capistrano is installed on your system, we can prepare the application to use it.

Basic Configuration

You will notice that a few files have been created in your application directory.

.
Capfile
config/
- deploy.rb

Let’s update the Capfile to pull in the Rails-less-deploy magic. This gem is responsible for overriding all of the Rails-specific tasks so that we can implement our own custom behavior.

Now, just like any normal Capistrano setup, we must configure some basic details about our destination infrastructure.

WordPress Example

Taking a typical WordPress install as an example, there a few custom tasks that we can write to make our lives easier. First, let’s extend the default setup task to include tasks for dropping our default configuration file and creating a uploads folder in the shared directory.

Now, log into your server and update your app/shared/config/wp-config.php file to match the server configuration. When that is done, you are ready to the deploy the application code. We will augment that process with a few tasks that will sync our uploads directory as well as symlink our shared config file to the current release.

View Source

About us and this blog

We are a full-service digital marketing agency that connects companies with customers, click by click.

Request a free quote

We offer professional SEO services that help websites increase their organic search score drastically in order to compete for the highest rankings even when it comes to highly competitive keywords.

Subscribe to our newsletter!

More from our blog

See all posts
17 Comments
  1. good high high quality webpage…obviously want any web-site it may need have to discover every single punctuational concerning many yourself evaluations. A amount associated with money masters are actually rife by punctuational difficulties and Document obtain away the following spec…

  2. Hi superb website! Does running a blog such as this take a massive amount work?
    I’ve very little expertise in computer programming but I was hoping to start my own blog in the near future.
    Anyhow, should you have any ideas or tips for new blog owners please share.
    I understand this is off subject however I just wanted to ask.
    Appreciate it!

  3. In Internet Marketing, youu too can work with much less employs you possibly can take more work with less manpower.

  4. In case some harm iis detected, the tank
    may have to be repaired to keep away from future issues.

  5. Reply

    こんにちは。うちはおしゃれするのが好きで、最近は毎日オシャレ雑誌を読んでいます。早く手に持ちたいのは、財布とバッグです。財布は流行っているものではなく、素材重視で選びたいですね。ブランドならコーチやシャネルが有名ですが、僕はココマイスターとか好きですね。今度の給料日に買ってみようかな。革は牛革がいいですね。変わったものでは蛇革(パイソンレザー)の財布も独自で面白そうですね。バッグはうちは、30代なので年齢に見合ったリュックサックも視野に入れています。コンパクトで使いやすいバッグが好みです。

  6. Thank you for the auspicious writeup. It in reality used
    to be a entertainment account it. Glance complex to more introduced agreeable from you!
    By the way, how could we be in contact?

  7. Reply

    I’d like to thank you forr the efforts you’ve put in writing this website.
    Iam hoping to viesw the ame high-grade content by you in the future as
    well. In fact, your creative writing abilities has encouraged me to get my own, personal site now 😉

  8. Reply

    It’s actually a great and useful piece of info. I am glad that you simply shared this helpful information with us.
    Please stay us up to date like this. Thank you for sharing.

  9. Reply

    Bangkok Airport hotels are conveniently located and easy to get
    to from Suvarnabhumi.

  10. Essa Secretaria Municipal de Instrução a São Paulo confirmou para nascente ano essa publicação do postura de seu concurso para professor de ensino fundamental
    II e médio.

  11. Reply

    Thanks for any other informative website. Where else may just I get
    that type of info written in such a perfect means?
    I have a project that I am just now working on, and I’ve been at the look out for such info.

  12. Cupcake Red Velvet: famoso Cupcake Felpudo Vermelho com cobertura de Cream
    Cheese.

  13. Reply

    Terminado tratamento térmico, os cabelos são enxaguados,
    neutralizados e hidratados com cremes adequados. http://www.Nchsa.org/Activity-Feed/userId/19317

  14. Reply

    Can you tell us more about this? I’d like to find out some additional information.

  15. Reply

    I was curious if you ever considered changing the layout of your site?
    Its very well written; I love what youve got to
    say. But maybe you could a little more in the way of content
    so people could connect with it better. Youve got an awful lot
    of text for only having 1 or 2 images. Maybe you could space it out better?

  16. Reply

    I liҝe the helⲣful infoгmation you supply for ʏoᥙr articles.
    I’ll bookmark your weblog and taҝe a look at once
    more right here frequently. I’m fairly certaіn I’ll be told many new stuff
    proper here! Beѕt of luck for the next!

 

Leave a Comment