项目作者: ziguzagu

项目描述 :
A strategy for Capistrano 3 to deploy prebuilt tarball.
高级语言: Ruby
项目地址: git://github.com/ziguzagu/capistrano-scm-tar.git
创建时间: 2014-07-30T10:12:11Z
项目社区:https://github.com/ziguzagu/capistrano-scm-tar

开源协议:MIT License

下载


capistrano-scm-tar

Gem Version
Maintainability
Test Coverage

A tar strategy for Capistrano 3 to deploy tarball.

Installation

Add this line to your application’s Gemfile:

  1. gem 'capistrano-scm-tar'

Usage

Set tar as scm option in your config/deploy.rb:

  1. set :scm, :tar

Build a release package of your project and upload it to the server you run capistrano:

  1. tar czf /tmp/v1.0.0.tar.gz *
  2. scp /tmp/v1.0.0.tar.gz example.com:/tmp/v1.0.0.tar.gz

And then, deploy it:

  1. cap deploy package=/tmp/v1.0.0.tar.gz

The basename of tarball is used for the revision number of capistrano setting by set_current_revision.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/toreta/time_second.

License

The gem is available as open source under the terms of the MIT License.