Created
March 2, 2013 08:29
-
-
Save caok/5070173 to your computer and use it in GitHub Desktop.
Managing `database.yml` Securely:http://www.simonecarletti.com/blog/2009/06/capistrano-and-database-yml/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base: &base | |
adapter: sqlite3 | |
timeout: 5000 | |
development: | |
database: <%= shared_path %>/db/development.sqlite3 | |
<<: *base | |
test: | |
database: <%= shared_path %>/db/test.sqlite3 | |
<<: *base | |
production: | |
adapter: mysql2 | |
host: <%= Capistrano::CLI.ui.ask("Enter MySQL database host ip: ") %> | |
database: <%= application %> | |
username: <%= Capistrano::CLI.ui.ask("Enter MySQL database usename: ") %> | |
password: <%= Capistrano::CLI.ui.ask("Enter MySQL database password: ") %> | |
encoding: utf8 | |
pool: 5 | |
timeout: 5000 | |
reconnect: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment