News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jeremy Kendall:
PHP and Capistrano 3 Notes to Self
November 26, 2013 @ 10:27:18

In a recent post to his blog Jeremy Kendall has posted a guide to deploying a PHP application with Capistrano. There's been enough changes in recent versions of the tool where information and configuration was difficult to find.

I spent quite a bit of my day yesterday trying to work out a painless, scripted, idiot-proof deployment process with Capistrano for my photo-a-day website. I've been doing a lot of work on the site lately, which means a lot of deployments, and I've been very unhappy with myself for implementing what amounts to "deployment worst practices" when it comes to my personal projects. The last time I worked with Capistrano was about two years ago, and a lot has changed since then. Capistrano v3 was released in June of 2013 and brought with it a lot of great changes, but for a guy who doesn't know ruby and relies on tutorials and Stack Overflow questions for help, the version bump brought a lot of pain as well.

He starts with a list of some of the immediate challenges he hit against including that every tutorial is wrong (because they're for v2) and that the Capistrano v3 official documentation is lacking. From there he shares the steps he followed to get the whole process working:

  • Installing Ruby and Capistrano
  • Preparing the configuration files for the deploy
  • Server configuration/SSH forwarding
  • Getting Composer to work on deploy (with a Ruby gem)

There's also a few other random helpful hints around linked files/directories and variables.

0 comments voice your opinion now!
capistrano v3 deployment application configuration installation notes

Link: http://jeremykendall.net/2013/11/24/php-and-capistrano-3-notes-to-self/

NetTuts.com:
Deploying a Laravel Application Using Capistrano
November 25, 2013 @ 12:02:47

NetTuts.com has posted a tutorial for the Laravel users out there showing how to deploy with Capistrano, a Ruby-based automation tool used to deploy to and configure remote systems.

So you've just built a fancy web application and you're planning to put it online. This can be done in many ways. In this article, we'll cover one approach to deploy your backend system to your production server. We'll go through the following steps through the example of a Laravel application, but this can be applied to any other language or technology.

It's a pretty straight forward post, starting with what you'll need on the server and on your local machine as well as a sample "Capfile" to configure the process. There's also a bit at the end with some other things to consider like prompting for a password, running migrations and the command to do a rollback.

0 comments voice your opinion now!
laravel application capistrano deployment tutorial

Link: http://net.tutsplus.com/tutorials/php/deploying-a-laravel-application-using-capistrano/

DZone.com:
Deploying PHP Projects with Webistrano
November 02, 2012 @ 09:46:51

On DZone.com there's a recent article posted by Kasia Gogolek that walks you through the deployment of a web application with the Webistrano tool, a web UI for working with Capistrano. This follows the first article where they talk about the Webistrano installation.

Most of the applications I write, are PHP based, so all of my examples will be based on that assumption, but you can re-use the ideas mentioned for software written in any other programming language. The setup [in the example] discusses just the deployment to the test project. Deployment to the production will be similar, and by the end of the article, you should understand what differences it will require.

She walks you through the creation of a new project, an example of the contents of the "base.rb" configuration file and how to create the stages (environments) to deploy to. Next up is the "recipes" themselves - the configuration steps for the deployment process. In their examples they show how to set permissions, update a database, manage asset files and a bit more to get Plesk installed on a server.

0 comments voice your opinion now!
webistrano capistrano deployment tutorial web ui recipe


Dave Gardner's Blog:
PHP Deployment with Capistrano
February 15, 2012 @ 12:11:10

Dave Gardner has put together a guide to deploying PHP applications with the help of Capistrano, a Ruby-based deployment tool (including some example "recipes").

Capistrano is written in Ruby and offers up a basic DSL from which you can craft quite flexible deployment scripts. [...] That said, it's very flexible. In my current setup I have it deploying to multiple environments (dev, staging, production), building code (think Phing), running tests on the servers before finalising the deploy and then restarting worker processes on completion.

He starts by introducing some of the commands that you can perform with the "cap" command line client and links to an example PHP project structure you cn base your deployment off of. He also includes a bit about multi-stage deployments, tag (version) selection and the full source of his build script.

0 comments voice your opinion now!
capistrano introduction deployment ruby tool


Theme.fm:
Deploying WordPress with Capistrano
August 25, 2011 @ 12:14:18

In this recent post to Theme.fm they have a guide to deploying your WordPress site (or really any sort of PHP-driven site) with Capistrano. There's some WordPress specific bits in there, but it's a good overall guide to deployment with this handy tool.

I'm not a Capistrano expert (yet) and in this post I'll try to give you an overview how to set it up and how to deploy WordPress applications (websites) in seconds. We'll work with only one server today but the principles in deploying to two or more are pretty much the same.

He starts by introducing Capistrano and talking about some of the major benefits it can bring to you and your project (most importantly - simple deployments). The tutorial helps you install Capistrano and get it set up to work with your Github repository to pull the source. The WordPress specific bit has to do with configuration files and suggests an "if" check to see if there's local config first. Also included are the updates you'll need to make to the Capistrano config file and the commands to push the latest as well as rollback to your previous version.

0 comments voice your opinion now!
deployment capistrano wordpress tutorial configuration


Knp Labs:
Deploy Your Symfony Application Painlessly with Capifony
June 22, 2011 @ 12:03:32

On the Knp Labs site there's a recent post showing you how to use Capifony (a tool designed for use with Symfony projects) to deploy your Symfony-based applications in a few easy steps.

Deploying should be an active part of your development process, but not something that gives you a headache. If deploying your entire application takes more than one command or doesn't put a smile on your face, you should keep reading. NOTE: This post will specifically cover how to deploy your Symfony2 application, but the library used here - capifony - is just as useful for deploying a symfony 1.x application.

He walks you through the simple five step process of installing and configuring the capifony tool to pull from a remote git repository, set up some shared directories and update the vendor libraries on deployment. A few more changes for the initial deployment and you'll be ready to call "cap deploy" any time you'd like to push the latest version of your application. He also points out that with version 2.0.9 and above of capifony, Doctrine database migrations are also supported. For more information on capifony, see the project's website.

0 comments voice your opinion now!
capifony symfony deployment capistrano ruby tutorial


The Bakery:
Deploying CakePHP with Capistrano
April 23, 2010 @ 09:49:00

On The Bakery (for CakePHP) there's a new tutorial showing how to use the Capistrano deployment tool to push out the latest versions of your CakePHP applications.

I was looking for a good deployment solution for my CakePHP apps and as nothing seems to fit perfectly, Capistrano does a very good job at keeping it simple. My setup is using a Git repository but almost SCM all supported by cap. Here is a basic guide into Capistrano setup configuration for CakePHP.

Once you get past some of the basics, they walk you through the configuration options, environment options and the full scripts to perform the deployment.

1 comment voice your opinion now!
cakephp framework deployment capistrano


Chris Hartjes' Blog:
You Asked For It Chris' Awesome But Short Guide To Deployment Using Phing
April 15, 2010 @ 09:43:33

Chris Hartjes has posted a "short guide" to deployment using phing, a PHP-based compilation and deployment tool.

While Capistrano is certainly up to the task of deploying my own personal projects, I had nothing but problems getting people OTHER than myself to get it up and running. You wouldn't think that getting Ruby and then assorted gems installed on a non-Windows machine would be that hard. Apparently it is. So what was my alternate solution? Create something that can be run on the server where the code is going to be deployed.

He creates a process similar to the Capistrano methods that uses a symlink to switch from an older version of the code to a newer one. He shares the configuration files he used to check out the latest source - all XML based.

0 comments voice your opinion now!
phing deployment guide capistrano xml


Vid Luther's Blog:
Managing Wordpress and other PHP projects with Ruby
January 12, 2010 @ 08:46:35

New on his blog today Vid Luther talks about deploying WordPress using Ruby (specifically Capistrano) to manage the build and deployment of you web applications.

One of the best deployment systems out there (imho), is by the Ruby community, and it's called Capistrano. We've been using it internally since this summer to manage and deploy our Symfony application with great success. I'll be sharing the methodology to "Capify" a Symfony project soon, but first I wanted to share the Wordpress-Capistrano project.

The project's currently hosted on github where you can download it and try it out for yourself. Most of his recopies should be commented out but be sure to check before running any sort of deployment.

0 comments voice your opinion now!
wordpress deployment build capistrano


Dylan Tack's Blog:
Deployment with Capistrano (Drupal)
November 11, 2009 @ 12:47:53

Dylan Tack has posted the first and second parts of a series looking at deploying applications (in his case, a Drupal installation) with the Capistrano automation tool.

I'm a big fan of having an automated deployment process. It's really the web development analog to the "one step build process", as described in the Joel Test. In the past I have used various shell scripts to perform this task, but I have recently become a convert to Capistrano (or "cap" for short). With Capistrano, uploading your code to the test server is as simple as typing cap deploy. When you're ready to launch in production, it's just cap production deploy.

In part one he sets up his Capistrano configuration with his deploy.rb, development.rb and capfile configuration files. In the second part he integrates Drush, a multisite deployment and a multistage process.

0 comments voice your opinion now!
capistrano deployment drupal tutorial



Community Events





Don't see your event here?
Let us know!


code configure developer language library community interview symfony threedevsandamaybe podcast install series framework list release api unittest wordpress application introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework