Ignore:
Timestamp:
May 14, 2011, 11:10:48 PM (13 years ago)
Author:
gav
Message:

Externalise the config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/DataSource.groovy

    r878 r923  
    1616
    1717// Environment specific settings.
     18// All production config is in external config.
    1819environments {
    1920    development {
     
    5152        }
    5253    }
    53     production {
    54         dataSource {
    55             /* Delete dbCreate line after setup! */
    56             /** HSQLDB - In memory */
    57 //             driverClassName = "org.hsqldb.jdbcDriver"
    58 //             username = "sa"
    59 //             password = ""
    60 //             dbCreate = "create-drop"
    61 //             url = "jdbc:hsqldb:mem:devDb"
    62             /** HSQLDB - In file */
    63 //             driverClassName = "org.hsqldb.jdbcDriver"
    64 //             username = "sa"
    65 //             password = ""
    66 //             dbCreate = "update"
    67 //             url = "jdbc:hsqldb:file:prodDb;shutdown=true"
    68             /** MSSQL */
    69             //For more info see the docs that you downloaded with the driver.
    70 //             dialect = org.hibernate.dialect.SQLServerDialect // MSSQL 2000+2005 Useful with `grails schema-export`
    71 //             driverClassName = "com.microsoft.sqlserver.jdbc.SQLServerDriver"
    72 //             username = "gnumimsadmin"
    73 //             password = "gnumimsadmin"
    74 //             dbCreate = "update"
    75 //             url = "jdbc:sqlserver://gnumimssql01:1433;databaseName=gnumims_prod"
    76             /** MySQL */
    77             dialect = org.hibernate.dialect.MySQL5InnoDBDialect
    78             driverClassName = "com.mysql.jdbc.Driver"
    79             username = "gnumimsadmin"
    80             password = "gnumimsadmin"
    81             dbCreate = "update"
    82             url = "jdbc:mysql://gnumimssql01:3306/gnumims_prod?autoReconnect=true&sessionVariables=storage_engine=InnoDB"
    83         }
    84 
    85     }
    8654}
Note: See TracChangeset for help on using the changeset viewer.