-
Apr 16th, 2012, 08:04 AM
#1
run-app versus run-war
I have a grails 2.0.1project and using STS 2.9.1
This is really odd and am wondering if anyone has experienced the following behavior..
When I perform a grails run-war or war and deploy to a remote tomcat server all is well with the project.
When I perform a grails run-app or Debug as run-app, the instance of the app has some outdated Config.groovy and some old controller code.
I've tried various iterations of clean and compile to no avail. Has anyone seen this behaviour? Any suggestions?
Thanks much,
-marty
-
Apr 19th, 2012, 09:07 AM
#2
Hi Marty,
I've never had that experience.
Make sure the target folder is actually empty after you do your 'grails clean'. Maybe its not actually dropping everything. You could also add a space to the controller in question, save it, and then recompile so that the compiler sees it as a new version and recompiles (although the clean should have compiled it anyway). Make sure the file date is current, maybe the controller file is locked somehow and grails compile is skipping it because it cannot write to it.
Other than that, maybe check you config files and make sure there's no weird environment specific settings in your config files.
-
Apr 19th, 2012, 10:59 AM
#3
Thanks for the suggestion. I've actually deleted everything under ~/.grails and in the target directory and rebuilt the application. I still set incorrect config data when performing as run-app. but run-war is good. I'm befuddled.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules