0

I have Weceem 1.0 plugin installed in an empty Grails 1.3.7 application. I did the initial setup from the docs page, and I switched the devDB from "mem" to "file" storage. I can create a space, populate some content, but then when I restart the application (grails run-app), my space and content is gone.

The devDB.script and other files show traces of Weceem data, but I lose the content in the newly started application.

What do I need to do to get it persistent?

rdmueller
  • 10,742
  • 10
  • 69
  • 126
John Flinchbaugh
  • 2,338
  • 1
  • 17
  • 20
  • Did you remove the settings dbCreate = "create/create-drop" in your DataSource.groovy file for development env ? – fabien7474 Jul 26 '11 at 17:39
  • I'll try that, though I wouldn't expect it'll change, since the schema probably stays the same. – John Flinchbaugh Jul 26 '11 at 20:47
  • *That* was the problem. I changed it to "update", so it worked. I can't believe I was struggling with such a dumb problem. Please post it as an answer, and I'll accept it. Thanks. – John Flinchbaugh Jul 26 '11 at 23:48

2 Answers2

1

You need to remove the settings dbCreate = "create/create-drop" and replace it by "update" or "none" in your DataSource.groovy file for development environment.

fabien7474
  • 16,300
  • 22
  • 96
  • 124
-1

you can also start running a mongo database,

$ grails install-plugin mongodb

remove hibernate and add this to your domain class, to save your stuff to mongodb:

static mapWith="mongo"
thegrunt
  • 1,054
  • 1
  • 11
  • 22