Reputation: 26597
While development I need to frequently update my web app source code & deploy the updated war to a remote Tomcat server. Uploading a big war(25MB) takes too long(around 30 min) on my connection which is very unproductive. Is there any way I could reduce the war size ? There are a lot of external dependencies in my project. Could I deploy just the changes(may be dependencies remain intact) ?
Upvotes: 3
Views: 3686
Reputation: 164
You can use git hooks (http://www.git-scm.com/book/en/v2/Customizing-Git-Git-Hooks). Altough, this requires a git repository on your webserver. Deployments may triggered by push events.
Upvotes: 1
Reputation: 5647
Actually, if exploded war deployment is an option for you then you could use kwatee. It's a free and unrestricted tool (I'm the author) with a simple web interface (or CLI automation) that can do incremental exploded war updates and many other things.
Upvotes: 0
Reputation: 16625
It depends how much control you have over the upload process. If you have remote access to the filesystem, the following should work:
Upvotes: 5
Reputation: 17839
What you are asking (Could I deploy just the changes?
) cannot be done. There are other things you can do though to reduce the file size of your war file:
Upvotes: 2