Changeset 42
- Timestamp:
- Nov 2, 2009, 2:48:46 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/DataSource.groovy
r40 r42 26 26 production { 27 27 dataSource { 28 // create a database first called gscf, add a user nmc with password nmcdsp and grant him all rights to nmc_dsp_tno29 // $ mysql --user=root30 // mysql> create database nmc_dsp_tno;31 // mysql> use nmc_dsp_tno;32 // mysql> grant all on nmc_dsp_tno.* to nmc@localhost identified by 'nmcdsp';33 // mysql> flush privileges;34 // mysql> exit35 // $ mysql --user=nmc -p --database=nmc_dsp_tno36 28 37 driverClassName = "com.mysql.jdbc.Driver"38 29 dbCreate = "update" 39 30 username = "gscf" 40 31 password = "dbnp" 41 url = "jdbc:mysql://localhost/gscf"42 32 43 //dbCreate = "update" 44 //url = "jdbc:hsqldb:file:prodDb;shutdown=true" 33 //Postgres 34 driverClassName = "org.postgresql.Driver" 35 url = "jdbc:postgresql://localhost/gscf" 36 37 //MySQL 38 //url = "jdbc:mysql://localhost/gscf" 39 40 //In memory 41 //driverClassName = "com.mysql.jdbc.Driver" 42 //url = "jdbc:hsqldb:file:prodDb;shutdown=true" 45 43 } 46 44 } -
trunk/grails-app/conf/NimbleBootStrap.groovy
r40 r42 48 48 49 49 // Execute any custom Nimble related BootStrap for your application below 50 51 if ( GrailsUtil.getEnvironment().equals(GrailsApplication.ENV_DEVELOPMENT)) {50 // To prevent adding test users to producton, add !GrailsUtil.getEnvironment().equals(GrailsApplication.ENV_DEVELOPMENT) 51 if ( gscf.User.count()==0 ) { 52 52 53 53 // Create example User account
Note: See TracChangeset
for help on using the changeset viewer.