Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Database YAWLP.

  • Loading branch information...
commit 3e6bea039729fca20f0ce628cd3312f5913863f8 1 parent 2cbb70b
Chris Williams authored
4  .gitignore
@@ -3,10 +3,10 @@ log/*.log
3 3
 log/*.pid
4 4
 #config/development.sphinx.conf
5 5
 tmp/**/*
6  
-config/database.yml
  6
+#config/database.yml
7 7
 db/*.sqlite3
8 8
 coverage
9 9
 doc/plugins/*
10 10
 doc/*
11 11
 #db/sphinx/development/*
12  
-Capfile
  12
+Capfile
30  config/database.yml
... ...
@@ -0,0 +1,30 @@
  1
+<% PASSWORD_FILE = File.join(RAILS_ROOT, '..', '..', 'shared', 'config', 'dbpassword') %>
  2
+
  3
+development:
  4
+  adapter: mysql
  5
+  database: <%= PROJECT_NAME %>_development
  6
+  username: root
  7
+  password: 
  8
+  host: localhost
  9
+  encoding: utf8
  10
+  collation: utf8_general_ci
  11
+  
  12
+test:
  13
+  adapter: mysql
  14
+  database: <%= PROJECT_NAME %>_test
  15
+  username: root
  16
+  password: 
  17
+  host: localhost
  18
+  encoding: utf8
  19
+  collation: utf8_general_ci
  20
+  
  21
+
  22
+production:
  23
+  adapter: mysql
  24
+  database: <%= PROJECT_NAME %>_production
  25
+  username: <%= PROJECT_NAME %>
  26
+  password: <%= File.read(PASSWORD_FILE).chomp if File.readable? PASSWORD_FILE %>
  27
+  host: localhost
  28
+  encoding: utf8
  29
+  collation: utf8_general_ci
  30
+  socket: /var/lib/mysql/mysql.sock

0 notes on commit 3e6bea0

Please sign in to comment.
Something went wrong with that request. Please try again.