Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

capistrano-sqlite-reuse

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capistrano-sqlite-reuse

  • 1.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Capistrano::SqliteReuse

Capistrano tasks for handling sqlite dbs when deploying Rails 4+ apps.

Install

Add this to Gemfile:

group :development do
  gem 'capistrano', '~> 3.2.1'
  gem 'capistrano-sqlite-reuse', '~> 1.0.0'
end

And then:

$ bundle install

Setup and usage

  • add to Capfile:

      require 'capistrano/sqlite-reuse'
    

You can now proceed with other deployment tasks.

How it works

On deployment:

  • we look for database.yml file to read the database location on the server
  • if it exists, we add to linked files
  • if not we look for file in current deployment, if it exists, we copy to shared and add to linked
  • if nothing exists, then we allow database to be generated normally and it will be shared on next deploy.

FAQs

Package last updated on 08 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc