https://github.com/ziguzagu/capistrano-scm-tar
A strategy for Capistrano 3 to deploy prebuilt tarball.
https://github.com/ziguzagu/capistrano-scm-tar
capistrano ruby rubygem
Last synced: 20 days ago
JSON representation
A strategy for Capistrano 3 to deploy prebuilt tarball.
- Host: GitHub
- URL: https://github.com/ziguzagu/capistrano-scm-tar
- Owner: ziguzagu
- License: mit
- Created: 2014-07-30T10:12:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-02-29T06:56:39.000Z (about 5 years ago)
- Last Synced: 2025-04-10T12:14:54.008Z (22 days ago)
- Topics: capistrano, ruby, rubygem
- Language: Ruby
- Homepage:
- Size: 15.6 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# capistrano-scm-tar
[](https://badge.fury.io/rb/capistrano-scm-tar)
[](https://codeclimate.com/github/ziguzagu/capistrano-scm-tar/maintainability)
[](https://codeclimate.com/github/ziguzagu/capistrano-scm-tar/test_coverage)A tar strategy for Capistrano 3 to deploy tarball.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'capistrano-scm-tar'
```## Usage
Set `tar` as `scm` option in your `config/deploy.rb`:
```ruby
set :scm, :tar
```Build a release package of your project and upload it to the server you run capistrano:
```shell
tar czf /tmp/v1.0.0.tar.gz *
scp /tmp/v1.0.0.tar.gz example.com:/tmp/v1.0.0.tar.gz
```And then, deploy it:
```shell
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](https://github.com/toreta/time_second).
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).