Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Deploy Magento with Capistrano extended gem
Ruby

This branch is 12 commits behind alistairstead:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
features
lib
.gitignore
Gemfile
LICENSE
README.md
Rakefile
cucumber.yml
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 .

Usage

Once you have run magentify on your project it will add a Capfile and deploy.rb configuration file

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:

$ 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:

$ 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
Something went wrong with that request. Please try again.