Ignore:
Timestamp:
Jan 27, 2009, 11:02:59 PM (16 years ago)
Author:
gav
Message:

Setup Boostrap and DataSource? so that we have demo data in prod env for deployin
g demo. Adjust the entry domain and rebuild views and controller.

File:
1 edited

Legend:

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

    r16 r39  
    1010    cache.provider_class='com.opensymphony.oscache.hibernate.OSCacheProvider'
    1111}
    12 // environment specific settings
     12
     13//environment specific settings
     14//create-drop:  drop tables and data between sessions, then insert from Bootstrap.
     15//create:       drop data between sessions, can't explain the rest.
     16//update:       keep data, update tables as required, keeps inserting from BootStrap.
    1317environments {
    1418        development {
     
    2630        production {
    2731                dataSource {
    28                         dbCreate = "update"
    29                         url = "jdbc:hsqldb:file:prodDb;shutdown=true"
     32                        //Delete dbCreate line after setup!
     33            dbCreate = "create-drop"
     34                        //url = "jdbc:hsqldb:file:prodDb;shutdown=true"
     35            url = "jdbc:hsqldb:mem:devDB"
    3036                }
    3137        }
Note: See TracChangeset for help on using the changeset viewer.