Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Database YAWLP.

  • Loading branch information...
commit 3e6bea039729fca20f0ce628cd3312f5913863f8 1 parent 2cbb70b
@voodootikigod authored
Showing with 32 additions and 2 deletions.
  1. +2 −2 .gitignore
  2. +30 −0 config/database.yml
View
4 .gitignore
@@ -3,10 +3,10 @@ log/*.log
log/*.pid
#config/development.sphinx.conf
tmp/**/*
-config/database.yml
+#config/database.yml
db/*.sqlite3
coverage
doc/plugins/*
doc/*
#db/sphinx/development/*
-Capfile
+Capfile
View
30 config/database.yml
@@ -0,0 +1,30 @@
+<% PASSWORD_FILE = File.join(RAILS_ROOT, '..', '..', 'shared', 'config', 'dbpassword') %>
+
+development:
+ adapter: mysql
+ database: <%= PROJECT_NAME %>_development
+ username: root
+ password:
+ host: localhost
+ encoding: utf8
+ collation: utf8_general_ci
+
+test:
+ adapter: mysql
+ database: <%= PROJECT_NAME %>_test
+ username: root
+ password:
+ host: localhost
+ encoding: utf8
+ collation: utf8_general_ci
+
+
+production:
+ adapter: mysql
+ database: <%= PROJECT_NAME %>_production
+ username: <%= PROJECT_NAME %>
+ password: <%= File.read(PASSWORD_FILE).chomp if File.readable? PASSWORD_FILE %>
+ host: localhost
+ encoding: utf8
+ collation: utf8_general_ci
+ socket: /var/lib/mysql/mysql.sock
Please sign in to comment.
Something went wrong with that request. Please try again.