Skip to content

Instantly share code, notes, and snippets.

@zerothabhishek
Created October 2, 2010 05:36
Show Gist options
  • Save zerothabhishek/607349 to your computer and use it in GitHub Desktop.
Save zerothabhishek/607349 to your computer and use it in GitHub Desktop.
# To produce a database.yml file for production environment,
# while installing with Capistrano, and using
# database initialization recipe from here - http://gist.github.com/2769
# for rails3-mysql
production:
adapter: mysql2
database: <%= "#{application}_production" %>
username: <%= "#{user}" %>
password: <%= "#{Capistrano::CLI.ui.password_prompt("Enter MySQL database password: ")}" %>
encoding: utf8
timeout: 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment