Import a solution from the command line

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Import a solution from the command line

Postby jgarfield » Fri Jul 22, 2011 3:47 pm

Is there a way to do this? I've poked around a bit and haven't seen anything. I'm sure I could probably hack something together with curl to get this done, but it would be awfully nice if there was a native way to handle this.

I've been working on a way to streamline our client update process and I've reached a point where it can almost be just a one click launch, but what's hold it back is not really being able to automate the solution import.

Any other ISVs out there have any tricks to smooth out the multi-target deployment process?
Programmer.
adBlocks
http://www.adblocks.com
jgarfield
 
Posts: 223
Joined: Wed Sep 28, 2005 9:02 pm
Location: Boston, US

Re: Import a solution from the command line

Postby jgarfield » Tue Jul 26, 2011 8:07 pm

*crickets*

Really? No one?
Programmer.
adBlocks
http://www.adblocks.com
jgarfield
 
Posts: 223
Joined: Wed Sep 28, 2005 9:02 pm
Location: Boston, US

Re: Import a solution from the command line

Postby Jan Aleman » Wed Jul 27, 2011 12:06 am

you can POST it against the admin pages. You can even use the http plugin to do that.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Re: Import a solution from the command line

Postby david » Wed Jul 27, 2011 12:24 am

The challenge is to do it using only functional programming. *violin*
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Import a solution from the command line

Postby Jan Aleman » Wed Jul 27, 2011 12:35 am

*drums* wait till you see what's on the roadmap after 6 *more drums here*
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Re: Import a solution from the command line

Postby michel » Wed Jul 27, 2011 7:56 am

Jan Aleman wrote:you can POST it against the admin pages. You can even use the http plugin to do that.


Is this documented? Where can I find which parameters I should include in the POST-request and what to expect back?
Michel van Klink
Vision Development
michel
 
Posts: 186
Joined: Mon Sep 22, 2008 10:53 am
Location: Boskoop, The Netherlands

Re: Import a solution from the command line

Postby jcompagner » Wed Jul 27, 2011 12:04 pm

michel wrote:
Jan Aleman wrote:you can POST it against the admin pages. You can even use the http plugin to do that.


Is this documented? Where can I find which parameters I should include in the POST-request and what to expect back?


this is not a supported feature.. If you want to do that you just have to analyze the solution upload/import page, and rebuild the post that is done there.
Of course this could break with a next version of Servoy.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Import a solution from the command line

Postby jgarfield » Wed Jul 27, 2011 3:42 pm

Crafting up a solution to POST an update from inside Servoy isn't exactly the "command line" type of solution I was looking for....like I said, if I wanted to hack around with HTTP, I'd use CURL....and as Johan has so kindly pointed out, this isn't really a stable way to do things anyhow.

Seriously though, when you have 30 or so different servers to update when you release, little things like being able to make a script to perform the update is a BFD. It's already kind of a pain that there is no supported way to upgrade Servoy to a specific build for when you need to update an app server to something other than the latest release, though to be fair, I'v heard that this may be changing. However, I've got a way to get around this, and can apply that update from the command-line. Other things that can be done via CLI include:

    Turn off/on the app/db service
    Update plugins
    Sign/ReSign jars
    SQL Scripts

So really, all that is missing from being able to be able to package up an update into a single script installer is, you know, actually being able to apply the code changes. This isn't a really crazy request by any standard, and I'm sure any ISV that does on site installations would agree. It's not like I'm asking for something awesome like having a built in way to deploy updates via an automatic download from a centralized server. That would just be insanity :roll:

I imagine it wouldn't be exceedingly hard to re-purpose the code that already exists to handle getting a file from the file system instead of POST data. If that code is part of the open source I'd be happy to look at it and implement my own if someone wants to point me towards the right area.
Programmer.
adBlocks
http://www.adblocks.com
jgarfield
 
Posts: 223
Joined: Wed Sep 28, 2005 9:02 pm
Location: Boston, US

Re: Import a solution from the command line

Postby jgarfield » Wed Jul 27, 2011 3:48 pm

david wrote:The challenge is to do it using only functional programming. *violin*


I thought the challenge was to get free Scotch? :wink:
Programmer.
adBlocks
http://www.adblocks.com
jgarfield
 
Posts: 223
Joined: Wed Sep 28, 2005 9:02 pm
Location: Boston, US

Re: Import a solution from the command line

Postby michel » Wed Jul 27, 2011 4:51 pm

jgarfield wrote:So really, all that is missing from being able to be able to package up an update into a single script installer is, you know, actually being able to apply the code changes. This isn't a really crazy request by any standard, and I'm sure any ISV that does on site installations would agree. It's not like I'm asking for something awesome like having a built in way to deploy updates via an automatic download from a centralized server. That would just be insanity :roll:

+1

For us it would not be a problem if this is done via http post-requests. But it should be both supported and documented, otherwise we could get in serious trouble when it breaks after updating Servoy.
Michel van Klink
Vision Development
michel
 
Posts: 186
Joined: Mon Sep 22, 2008 10:53 am
Location: Boskoop, The Netherlands

Re: Import a solution from the command line

Postby Thomas Parry » Wed Jul 27, 2011 8:08 pm

+1 for improving scripted updates
Tom Parry
Prospect IT
Java/C++/Servoy/Jasper Reports/Simulation/Service Applications
http://www.prospect-saas.biz
Thomas Parry
 
Posts: 498
Joined: Thu Jan 10, 2008 8:48 pm
Location: Ottawa, Canada

Re: Import a solution from the command line

Postby david » Wed Jul 27, 2011 8:11 pm

The Servoy admin solution upload/import has been exactly the same the entire history of Servoy for what it's worth.

jgarfield wrote:
david wrote:The challenge is to do it using only functional programming. *violin*


I thought the challenge was to get free Scotch? :wink:


doh! :oops:
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Import a solution from the command line

Postby michel » Fri Jul 29, 2011 7:52 am

*crickets* again...

No Servoy reaction? (Besides we have to wait for the *drums*)
Michel van Klink
Vision Development
michel
 
Posts: 186
Joined: Mon Sep 22, 2008 10:53 am
Location: Boskoop, The Netherlands

Re: Import a solution from the command line

Postby pbakker » Mon Aug 01, 2011 4:57 pm

As Johan already mentioned the workaround for posting manually on the Admin page isn't officially supported and Jan already mentioned to keep an eye on updates on the post 6.0 roadmap.

We'll be providing a post 6.0 roadmap update soon.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Re: Import a solution from the command line

Postby rogel » Thu Sep 08, 2011 3:10 am

jgarfield wrote:Other things that can be done via CLI include:

    Turn off/on the app/db service
    Update plugins
    Sign/ReSign jars
    SQL Scripts

So really, all that is missing from being able to be able to package up an update into a single script installer is, you know, actually being able to apply the code changes. This isn't a really crazy request by any standard, and I'm sure any ISV that does on site installations would agree. It's not like I'm asking for something awesome like having a built in way to deploy updates via an automatic download from a centralized server. That would just be insanity :roll:

Hi!
I am new to servoy and is tasked to create an update installer that will pretty much have the same procedure. Can you share the command lines to on/off the app/db, as well as how to update the plugins? What packager are you using?
I was also tasked to create the deployment installer using Inno Setup. What I did was package the installed application_server with the deployed solution and the bundled database engine that comes with servoy. Can you see any issues that may arise?
Looking forward to your expect advice
Thanks!
rogel
 
Posts: 264
Joined: Mon Jul 04, 2011 9:09 am

Next

Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 12 guests