Deploy Magento with Capistrano extended gem
Ruby
Latest commit 4f830d3 Jun 16, 2014 @alistairstead alistairstead Bump version with introduction of new functionality
* `cap mage:files:pull`
* `cap mage:files:push`

The deploy function has not changed but introduced new commands
Permalink
Failed to load latest commit information.
bin Generated Gemfile with Magentify Jan 2, 2014
features
lib Bump version with introduction of new functionality Jun 16, 2014
.gitignore Added the fixtures dir to ingnore Mar 8, 2012
Gemfile Initial commit of magentify gem Mar 7, 2012
LICENSE
README.md Generated Gemfile with Magentify Jan 2, 2014
Rakefile Initial commit of magentify gem Mar 7, 2012
cucumber.yml Added default profile for cucumber Mar 12, 2012
magentify.gemspec

README.md

Magentify

Capistrano is an open source tool for executing commands on multiple servers in parallel. It is intended to be used to easily deploying applications. While it was built specifically for deploying Rails apps, it is designed to be easily extended to deploy any type of application or run any number of commands. This project is a deployment recipes collection that works specifically with Magento.

Installation

$ gem install magentify

Project setup

$ magentify .
$ bundle install

Usage

Once you have run magentify on your project it will add a Capfile and deploy.rb configuration file, and a Gemfile for all the dependencies

set :application, "magento"
set :domain,      "#{application}.com"
set :deploy_to,   "/var/www/#{domain}"

set :user,        "deploy"
set :repository,  "git@github.com:user/project.git"
set :scm,         :git

role :web,        "000.000.000.000"   # Your HTTP server, Apache/etc
role :app,        "000.000.000.000"   # This may be the same as your `Web` server or a separate administration server

set  :keep_releases,  3

set :app_symlinks, ["/media", "/var", "/sitemaps", "/staging"]
set :app_shared_dirs, ["/app/etc", "/sitemaps", "/media", "/var", "/staging"]
set :app_shared_files, ["/app/etc/local.xml"]

Once you have magentified your project you can run:

$ bundle exec cap -T

This will list all the available tasks that can be run with a shot description. For more detailed information about each of the tests run:

$ bundle exec cap -e [task_name]

For detailed information about how to configure and use Capistrano for deployment you should read the Capistrano wiki pages:

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Create a cucumber scenario to describe your feature
  4. Add the steps to test the functionality
  5. Add your Feature or Fix to satisfy the tests.
  6. Commit your changes (git commit -am 'Added some feature')
  7. Push to the branch (git push origin my-new-feature)
  8. Create new Pull Request

##Getting your development environment to work

  1. You're going to need a working sshd server in your localhost, and access for your development user without password.
  2. Download the project
  3. bundle install to install the dependencies
  4. bundle exec cucumber to run the tests