| Previous · Next | |
| User | Message |
|
patspam
|
Date: 7/10/2008 3:20 am · Subject: Wobject install/upgrade infrastructure · Rating: 0
It strikes me that something similar to the WebGUI upgrade infrastructure would be really useful for deploying/upgrading my own custom Wobjects to my clients' servers. I'm interested to hear what automated scripts you guys are using before I run off and roll my own solution. Here are my thoughts: Installing a Wobject to a single site is similar to upgrading a single site in the following ways:
Patrick |
| Back to Top |
Rate [ | ]
|
|
preaction
|
Date: 7/10/2008 9:28 am · Subject: Re: Wobject install/upgrade infrastructure · Rating: 0
I wrote a mixin to the Asset class that installs an asset based on its definition. There are some more features that I need to add, such as dependency-checking and installing packages, but it works to add the asset's table to the database and add the asset to the configuration file. It's available in my experimental branch: https://svn.webgui.org/svnweb/plainblack/view/branch/doug-experimental/sbin/installAsset.pl This mixin requires the mixin.pm module to be installed from CPAN. Then it's just a simple matter of putting "use mixin 'WebGUI::AssetMixin::Installable'" and running the installAsset.pl with your class as the first argument. Patches are welcome. |
| Back to Top |
Rate [ | ]
|
|
patspam
|
Date: 7/11/2008 4:05 am · Subject: Re: Wobject install/upgrade infrastructure · Rating: 0
That looks really cool. I've had a think about the features I'd like to add to it to make it something that people can use to install/upgrade/remove their own Wobjects, as well as easily share them with other people. I'm sure there's lots of room to improve on this, so please don't hold back on the criticism..Firstly, I suggest Wobjects be distributed as tarballs with the following structure:
I propose extending your installAsset.pl so that it performs the following steps:
Manual Install
WREConsole Install
Patrick On Fri, Jul 11, 2008 at 12:28 AM, <doug@plainblack.com> wrote: preaction wrote: |
| Back to Top |
Rate [ | ]
|
|
JT
|
Date: 7/14/2008 12:35 pm · Subject: Re: Wobject install/upgrade infrastructure · Rating: 0
Firstly, I suggest Wobjects be distributed as tarballs with the following structure:It should be more like /docs/Classname/ so that it doesn't mess with the normal webgui ones if someone extracts it right into the /data/WebGUI folder.
/upgrades/Classname here too
I disagree. It should continue to be in /data/WebGUI/www/extras/wobject/Classname for static files. It's not as hard on the server loading them from here, plus they shouldn't be changed by an end user. However, maybe we should move all the asset images into this folder instead of having one master folder for them all.
I think I'm good with all the install things you mentioned. It would definitely be cool if we build a package structure with metadata so that we could load in custom plugins through the wre console. JT Smithph: 703-286-2525 x810fx: 312-264-5382 Create like a god. Command like a king. Work like a slave. |
| Back to Top |
Rate [ | ]
|