Skip to content

cookieshq/capistrano-database-management-setup

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

Capistrano database setup management

Usage

This recipe assumes you have a config/database.yml.example present on your Rails code.

Then when you do your cap [environment] deploy:setup it will ask for database username, password, and database name.

It will then store a database.yml file in your shared_path/config/

Deployment

On every deploy the recipe is creating a sym link to from the shared config to your application database.yml file.

Capistrano recipe

For maintenability you can copy the database_recipe.rb file in your deploy/recipes/ folder then load it in your deploy.rb with

load 'config/deploy/recipes/database'

About

Manage your database config on setup task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages