Project

capsum

0.01
Low commit activity in last 3 years
A long-lived project that still receives updates
Collect gems and recipes related capistrano.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.6.1
>= 0

Runtime

 Project Readme

Capsum

collect gems and recipes for capistrano.

Installation

Add this line to your application's Gemfile:

gem "capsum", require: false

Usage

Add below files to your application.

./Capfile

require 'capistrano/setup'
require 'capistrano/deploy'

require "capsum/typical" # for rails project
# require "capsum/sidekiq"

require "capsum/rsync"
install_plugin Capsum::Rsync

./config/deploy.rb

set :application, 'shipin8'

# fetch(:linked_files).concat %w{
#   config/database.yml
#   config/settings.local.rb
# }

# fetch(:linked_dirs).concat %w{
#   public/uploads
# }

./config/deploy/uat.rb

set :deploy_to, -> { "/var/www/default/apps/#{fetch(:application)}" }
server 'host', user: 'www-data', roles: %w[web app db], primary: true # whenever: true, sidekiq: true

# bundle_env_variables[:http_proxy] = bundle_env_variables[:https_proxy] = "http://http_proxy_host:port"

now, you can use below command to delpoy your application. for more information please see the source code.

cap uat deploy

Contributing

  1. Fork it ( https://github.com/sunteya/capsum/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request