GitXplorerGitXplorer
t

capistrano_transmit

public
5 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
bbf57177634079199e854b0cc22e6dbe0ed457c1

update version

ttilsammans committed 11 years ago
Unverified
ffe9dceb6babe5a5ad7e2e0af87d60251ea5abdc

Renamed MIT-LICENSE to LICENSE. Still MIT license.

ttilsammans committed 11 years ago
Unverified
670fb64f5d4dd7d03ba6c824642773f1afcdac71

Merge pull request #4 from bartzon/master

ttilsammans committed 11 years ago
Unverified
98d265ae8b244deff0e710187e8b60d262d3c5d0

Using gzip and better mysqldump options in transmit:put:mysql

committed 11 years ago
Unverified
d8aa0e018256a5fbb4c69816c72cd8197d1f395c

ignore .ruby-version

ttilsammans committed 12 years ago
Unverified
2b0207a0b913e2fce4509a24704305865a2eee41

Update README

ttilsammans committed 12 years ago

README

The README file for this repository.

= Capistrano Transmit

Tasks to work with production data and assets.

This Capistrano plugin allows you to fetch the production database and assets and store them in your local development environment. For reasonably sized projects, you should do this regularly since you will notice typical production-related slowdowns such as missing indexes. The task to fetch assets helps keep your images un-broken, which is always nice.

The only thing this plugin does, is extend Capistrano. No Rails code is loaded. Capistrano loads the scripts in the recipes directory, and that's just what we need.

The plugin uses rsync to transfer the files, which means any existing files are skipped and/or appended based on their checksum. The transfers are compressed as well so we don't need to gzip the contents first. All this assumes both your production and development environment are Unix. Tested on Linux production and Mac OS X development.

== Installation for Rails 3+

In +Gemfile+:

gem 'capistrano_transmit', require: false, group: :development

Then add to your deploy.rb:

require 'capistrano/transmit'

== Examples

cap transmit:get:mysql # Fetch the production database into local development cap transmit:put:mysql # Overwrite the production MySQL database with your development data

== Prerequisites

You need Capistrano 2 for this gem to work.

A couple variables can be overridden by setting them in config/deploy.rb:

user # SSH user, defaults to nil, which falls back to your unix user deploy_host # the host on which to run the db dump, falls back to your first db dumpfile # remote pathname to dump the database in, defaults to tmp/${production}.sql.gz

Copyright (c) 2010-2013 Joost Baaij, released under the MIT license.