Skip to content

Instantly share code, notes, and snippets.

@caok
Created March 2, 2013 08:29
Show Gist options
  • Save caok/5070173 to your computer and use it in GitHub Desktop.
Save caok/5070173 to your computer and use it in GitHub Desktop.
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