diff options
Diffstat (limited to 'config/database.yml')
-rw-r--r-- | config/database.yml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/config/database.yml b/config/database.yml index 706ed06..8ec5d75 100644 --- a/config/database.yml +++ b/config/database.yml @@ -7,10 +7,10 @@ development: # Read the database configuration from the system odbc # configuration. # -<%- system_odbc_ini_file = '/var/lib/.odbc.ini' %> -<%- if File.exists?(system_odbc_ini_file) %> -<%- system_odbc_configuration = IniFile.load(system_odbc_ini_file) %> -<%- if !system_odbc_configuration['gemeinschaft']['DATABASE'].blank? && !system_odbc_configuration['gemeinschaft']['USER'].blank? %> +<% system_odbc_ini_file = '/var/lib/.odbc.ini' %> +<% if File.exists?(system_odbc_ini_file) %> +<% system_odbc_configuration = IniFile.load(system_odbc_ini_file) %> +<% if !system_odbc_configuration['gemeinschaft']['DATABASE'].blank? && !system_odbc_configuration['gemeinschaft']['USER'].blank? %> production: adapter: mysql2 encoding: utf8 @@ -20,7 +20,7 @@ production: password: <%= system_odbc_configuration['gemeinschaft']['PASSWORD'] %> socket: /var/run/mysqld/mysqld.sock reconnect: true -<%- else %> +<% else %> production: adapter: mysql2 encoding: utf8 @@ -30,8 +30,8 @@ production: password: gemeinschaft socket: /var/run/mysqld/mysqld.sock reconnect: true -<%- end %> -<%- end %> +<% end %> +<% end %> # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". |