开发者

How Prod Run Grails on Netbeans 7.0

I'm using Netbeans 7.0 & Grails 1.3.7. Everytime page refresh, or re-run application, all my entered data's deleting. But I learnt command "grails prod run-app". Unfortunaly I don't 开发者_如何学编程know how I write it on Netbeans 'Run Grails Command' Dialog?


I am not sure, but may be you need to change your DataSource.groovy inside configuration folder...

On that file search for 'development' under 'environments', and change :

dbCreate = "create-drop" // one of 'create', 'create-drop','update'

with

dbCreate = "update"

And run your application in normal way, like right click on project and Run in netbeans... Give it a trial, and let me know if it works for you or not...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜