Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sqlite3 integration for Capistrano

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .ruby-version
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 capistrano-file_db.gemspec
README.md

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