Skip to content

Commit

Permalink
Capistrano deploy a few steps ahead - database initialization works
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek Yadav committed Oct 1, 2010
1 parent 41af425 commit ce4160c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
1 change: 1 addition & 0 deletions rc/.gitignore
Expand Up @@ -2,3 +2,4 @@
db/*.sqlite3
log/*.log
tmp/**/*
config/database.yml
26 changes: 7 additions & 19 deletions rc/config/deploy/database.yml.erb
@@ -1,20 +1,8 @@
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
database: #{application}_production
username: #{user}
password: #{Capistrano::CLI.ui.ask("Enter MySQL database password: ")}
encoding: utf8
timeout: 5000

production:
adapter: mysql2
database: <%= "#{application}_production" %>
username: <%= "#{user}" %>
password: <%= "#{Capistrano::CLI.ui.password_prompt("Enter MySQL database password: ")}" %>
encoding: utf8
timeout: 5000

0 comments on commit ce4160c

Please sign in to comment.