Skip to content

Commit

Permalink
Do not use MySQL db and use in-memory H2
Browse files Browse the repository at this point in the history
  • Loading branch information
ilopmar committed Dec 9, 2020
1 parent 74f198c commit 7bea4db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion grails-app/conf/BootStrap.groovy
Expand Up @@ -21,7 +21,7 @@ class BootStrap {


def admin = User.findByLogin("admin") def admin = User.findByLogin("admin")
if (!admin) { if (!admin) {
def password = Environment.current != Environment.PRODUCTION ? "changeit" : System.getProperty("initial.admin.password") def password = Environment.current != Environment.PRODUCTION ? "changeit" : System.getenv("ADMIN_PASSWORD")
if (!password) { if (!password) {
throw new Exception(""" throw new Exception("""
During the first run you must specify a password to use for the admin account. For example: During the first run you must specify a password to use for the admin account. For example:
Expand Down
2 changes: 1 addition & 1 deletion grails-app/conf/Config.groovy
Expand Up @@ -3,7 +3,7 @@ import pl.burningice.plugins.image.engines.scale.ScaleType


// locations to search for config files that get merged into the main config // locations to search for config files that get merged into the main config
// config files can either be Java properties files or ConfigSlurper scripts // config files can either be Java properties files or ConfigSlurper scripts
grails.config.locations = [ "file:./${appName}-config.groovy", "classpath:${appName}-config.groovy" ] //grails.config.locations = [ "file:./${appName}-config.groovy", "classpath:${appName}-config.groovy" ]


// local file for storing API keys at dev time // local file for storing API keys at dev time
def localUserConfig = new File(System.getProperty("user.home"), ".grails-website-config.groovy") def localUserConfig = new File(System.getProperty("user.home"), ".grails-website-config.groovy")
Expand Down

0 comments on commit 7bea4db

Please sign in to comment.