Grise exploded under a cat

Is there a way to use Grails in exploded mode on tomcat to make individual changes to a running application (like gif) without having to regenerate the whole war and load it?

Something like adding an xml file to tomcat conf / Catalina / localhost that points to an application with exploded engravings?

Thanks in advance.

+2
source share
5 answers

Not sure what you mean here, but tomcat will explode the war when it discovers a new one, in which case you can modify the files directly in the exploded directory. I would not recommend this, but as soon as you download a new version of the war, all your changes will be lost.

+2
source

Note that Grails can generate a blasted .war by adding grails.war.exploded = true to BuildConfig.groovy

+2
source

Isn't that the case when you run grails run-app ?

0
source

How do you access your server in the cloud? With tomcat, just create a directory with an extended war in it (without an extension of war) in your WebApps directory.

If you want Grails to leave and deploy the war, not the .War file, modify the War.groovy script in your Grails distribution so that you don’t delete the directory at the end.

Hope this helps.

0
source

My advice: save your static resources on another server.

I see that you are deploying your application in a cloud computing environment. If EC2 is your platform, then put all your static resources (images, css, html ...) in S3. Your pages will display faster (especially if you use CloudFront) And your WAR file will be smaller (less time to load / deploy), and you will be able to change static resources as often as you wish.

0
source

All Articles