Giter VIP home page Giter VIP logo

rails_database_yml's Introduction

Rails database.yml tasks for Deployment with Capistrano

This gem provide some Capistrano tasks to handle a database.yml file dynamically on the deployment server.

As you now, it is a bad idea to check the database credentials into the source control for security reasons.

So this gem provides a way to create and handle a shared database.yml file for you on your deployment servers. With this gem you don't need anymore to checkin a database.yml file with all the secrets of your database servers.

Usage

Add the gem to your Rails 3 Project that uses Bundler

gem "rails_database_yml"

Use Bundler to install the gem

bundle install

Require the capistrano tasks in your config/deployment.rb

require "rails_database_yml/capistrano"

That's all.

How it works

This gem asks you in cap deploy:setup for all necessery parameters for your database connection. Afters this it creates a database.yml file in the folder shared/config.

On every cap deploy the gem creates a symlink to the shared database.yml under current/config. So your rails application has always a database.yml file that is always the same between all deployments.

rails_database_yml's People

Contributors

anrichter avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.