Skip to content
Sqlite3 integration for Capistrano
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.ruby-version add requirement of ruby 1.8.7 so the gem also works for old rubies Oct 5, 2013
capistrano-file_db.gemspec add license to the gemspec, fix #3 Nov 1, 2013

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.


gem install capistrano-file_db


Add the gem to your Gemfile:

group :development do
  gem 'capistrano-file_db'

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.
Something went wrong with that request. Please try again.