Setup Mina

Condensed Version:

Init Mina on your application.

machine$> mina init
Created config/deploy.rb.

Use rvm or rbenv.

require 'mina/rvm'
# require 'mina/rbenv'

Update config/deploy.rb with Droplet's Details.

set :domain, <ipaddress>
set :deploy_to, '/home/deploy/<app_domain'
set :repository, 'git@github.com:<user>/<repo>.git'
set :branch, 'master'
set :user, 'deploy'
set :port, '8888'
....
task :environment do
queue 'source ~/.bash_profile'
# For those using RVM, use this to load an RVM version@gemset.
invoke :'rvm:use[ruby-2.1.4]'
end