Be a Zeek

Mina (with roles)

http://nadarei.co/mina/

Mina is a competitive fast deployer and server automation tool.

It basically is a deploy Bash script generator. It generates an entire procedure as a Bash script and runs it remotely onto the server.

Example Script for Mina (with whenever roles, as in Capistrano) can be found here.

Capistrano vs Mina

Capistrano runs each command separately on their own SSH session. Whereas, Mina only creates one SSH session per deploy minimising the SSH connection overhead resulting in decreased deploy time.

Visit here for side by side comparison.

Setting up Mina is really easy (Rails)

In Gemfile, gem ‘mina’

$ mina init

Edit config/deploy.rb

$ mina setup

$ mina deploy

This will do the job.

Pros

  • Much easier to understand and setup
  • Much Faster deploys
  • Supports many 3rd party modules

Awesome for small/medium sized application deploys.

Cons (as of now)

  • No support for rolling deploys.
  • No support for multiple server roles as of now. (Gist here using whenever)

Mina is involving and can be seen competing with Capistrano in near future.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: