Updating Solution on War Deployment

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Updating Solution on War Deployment

Postby wvitpr » Tue Nov 26, 2019 6:54 am

HI,
I have a NG solution running well on a war deployment, but I am having trouble uploading new releases using .servoy files, should this be possible?, the imports are failing because modules currently exist. It seems the only way I can successfully update my solution is through war re-deployment which is not ideal when the server is remote and we have crappy internet speed.
Any help would be greatly appreciated.
Regards,
Phillip Routley

Worldview IT
Sydney, Australia
User avatar
wvitpr
 
Posts: 193
Joined: Tue Apr 24, 2007 1:38 am

Re: Updating Solution on War Deployment

Postby swingman » Wed Nov 27, 2019 1:16 am

At the Servoy conference I was told that there is a way of exporting special war file which you can upload new releases to using .servoy files. (as long as your solution does not need any new or updated components).

I have not tried this and it would good for someone to explain in a bit more detail how this is done.

Also, how big is your WAR file? There was one version of Servoy, some 8.4.x, which exported huge 750MB war files. After I switched to 2019.03 the war file size dropped to 50MB. It made the uploads a lot quicker ;-)
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1270
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Updating Solution on War Deployment

Postby wvitpr » Wed Nov 27, 2019 1:26 am

Ok that sounds interesting, yes documentation on the war deployment is a little light, and unfortunately I couldn't get to servoy world. My WAR is around 90Mb.
Thanks for you reply :-)
Regards,
Phillip Routley

Worldview IT
Sydney, Australia
User avatar
wvitpr
 
Posts: 193
Joined: Tue Apr 24, 2007 1:38 am

Re: Updating Solution on War Deployment

Postby kwpsd » Wed Nov 27, 2019 7:49 pm

Over the summer, we experimented with a 2019.06 WAR deployment in our office. If I recall, to update the solution used by the WAR deployment, we used the Servoy web administration page, and it worked as expected. As Christian, said, no need to re-deploy WAR unless you update the component .jar files. For others reading this, please correct me, if I am mistaken.
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 631
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: Updating Solution on War Deployment

Postby goldcougar » Tue Dec 03, 2019 4:24 pm

Phil! Long time no see my friend! Figured I'd try to jump in and lend a hand...

So, when transitioning to NG, "officially" you have 2 deployment options:

1. Deploy via WAR but WITHOUT the active solution included. This deploys a base Servoy server. Then you can import the .servoy files the normal way.
2. Deploy via WAR always, WITH the active solution included.

I put "officially" in quotes because my experience with several clients is that option #1 doesn't work the same. Odd bugs that can't be reproduced in developer pop-up, and when you redeploy the WAR with the solution included, everything works. So, we've standardized to always doing WAR deployments. The other benefit there is the WAR includes all the NG components, plugins, etc, so you always get a full update, and not just the .servoy code changes. The downside is your customers will experience downtime during the update, since you have to undeploy the current war and deploy the new one.

Since this whole process is somewhat painful for people, and in many ways, more complex than they used to do, we have some tools we've used to automate this. We use TeamCity and have SVN/GIT hooks setup to look for changes, and it spins up a Docker image we made, which starts up a Servoy Developer instance, and it builds your WAR, runs any unit tests, and can deploy it for you. The deployment part could be just dropping it via FTP somewhere, or redeploying another docker image in the cloud.

We are working on migrating from TeamCity to Github Actions (See: https://github.com/features/actions ). Once thats working, we plan to offer that as a paid service that can be customized for each customer. Then deployments are as simple as doing a commit with a certain tag.

If that interests you, let me know and you could be our initial beta tester :)
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
goldcougar
Servoy Expert
 
Posts: 682
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH


Return to Servoy Server

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron