No commit activity in last 3 years
No release in over 3 years
Capistrano plugin that easies handling database files on production.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Simle capistrano plugin to manage database files

Extracted it to not repeat myself next time I need to use sqlite db on server. At first I wanted to name it "capistrano-sqlite3" but it could be used for any files, not only sqlite3 databases.

Installation

gem install capistrano-file_db

Usage

Add the gem to your Gemfile:

group :development do
  gem 'capistrano-file_db'
end

Ad the plugin in config/deploy.rb

require 'capistrano-file_db'

Configuration options

  • file_db_path - Set path to databases dir. Default to db.
  • file_db_files - Set list of database files. Default to ["#{RAILS_ENV||'production'}.sqlite3"].
  • file_db_rights - Set rights to set for files. Default to 600 - read/wrtie only for owner.