summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Braud-Santoni <nicoo@ffgraz.net>2016-08-07 21:24:10 +0200
committerNicolas Braud-Santoni <nicoo@ffgraz.net>2016-08-07 21:24:15 +0200
commitcb3e80e4fcabf7060479ea7a3438717b821434a2 (patch)
treea4713126fdb5460ccf249a6aca188303e2f14ff3
parent54032c8c4cae71b5d18d1e30acbb364da90453a5 (diff)
Secure access to the database
The password is provided throught the environment, and the DB is accessed through a UNIX socket.
-rw-r--r--config/database.yml21
1 files changed, 2 insertions, 19 deletions
diff --git a/config/database.yml b/config/database.yml
index f842c1e..ce0e60d 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -14,22 +14,5 @@ development:
adapter: mysql
database: mappe
username: mappe
- password: keuchfrosch
- host: localhost
-
-# Warning: The database defined as 'test' will be erased and
-# re-generated from your development database when you run 'rake'.
-# Do not set this db to the same as development or production.
-test:
- adapter: mysql
- database: mappe
- username: ffscript
- password: woasinid
- host: localhost
-
-production:
- adapter: mysql
- database: mappe
- username: ffscript
- password: woasinid
- host: localhost
+ password: <%= ENV['MANMAN_DB_PWD'] %>
+ socket: /var/run/mysql.sock