Changeset 42


Ignore:
Timestamp:
Nov 2, 2009, 2:48:46 PM (13 years ago)
Author:
keesvb
Message:

changed database to postgres, works well too :-)

Location:
trunk
Files:
1 added
2 edited

Legend:

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

    r40 r42  
    2626        production {
    2727                dataSource {
    28                            //   create a database first called gscf, add a user nmc with password nmcdsp and grant him all rights to nmc_dsp_tno
    29                             //  $ mysql --user=root
    30                             //  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> exit
    35                             //  $ mysql --user=nmc -p --database=nmc_dsp_tno
    3628
    37                             driverClassName = "com.mysql.jdbc.Driver"
    3829                            dbCreate =  "update"
    3930                            username = "gscf"
    4031                            password = "dbnp"
    41                             url = "jdbc:mysql://localhost/gscf"
    4232
    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"
    4543                }
    4644        }
  • trunk/grails-app/conf/NimbleBootStrap.groovy

    r40 r42  
    4848
    4949    // 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 ) {
    5252
    5353        // Create example User account
Note: See TracChangeset for help on using the changeset viewer.