Anonymous Human
Anonymous Human

Reputation: 1948

Grails 2.3.8 console and dbconsole

I was using the grails console to study GORM and I thought it would be pretty neat at the same time to run the application so that I could access the dbconsole via my browser at localhost:8080/<nameOfApplication>/dbconsole. This way I thought, I could see in dbconsole, the objects I was persisting using the grails console. However, in the dbconsole, I could not see the objects that I was persisting in the grails console. I tried the dbconsole in all environments (test, dev, prod) but it seems that the grails console doesn't operate so that I can see what it is doing in any of those environments. So my question is, did I do something wrong or is it the case the grails console persistence activity cannot be observed via the dbconsole?

Upvotes: 1

Views: 517

Answers (1)

dmahapatro
dmahapatro

Reputation: 50285

You can use grails console plugin to run the application (in order to use /dbconsole) and side by side use the playground for console (visiting /console).

Go through the summary section to know about its usage. This works the same way as grails console with some additional features like Local Storage.

Upvotes: 1

Related Questions