I don't think that we should support patching jaggery apps, webapps, or any other app for that matter. As a matter of fact, there is no such thing as patching a .war file or a PHP app. If there is some problem in an app, the solution is to either overwrite it, or introduce a new version.
Azeez On Sat, Jan 25, 2014 at 4:53 PM, Sameera Medagammaddegedara < samee...@wso2.com> wrote: > Hello Everyone, > > *Problem* > > - As it stands ,if a Jaggery application needs to be updated the user > must manually copy the required files > - This introduces a number of problems > - If several files need to be changed it will become a chore > - A user may forget to copy one or more files > - It departs from the normal way in which patches are applied to > other WSO2 products > - The files that could be included in a patch to a Jaggery file could > include (but is not limited ) to the following; > 1. JAG files > 2. JS files > 3. Jaggery Modules ( These will be JS files) > 4. Images and CSS files > 5. JSON files > > *Suggestion* > > - Package the files to be replaced in a zip format > - All Jaggery App patches could be placed in the > repository/components/patches/jaggeryapps similar to the way existing > patches are applied > - *Structure of the patch* > - Please refer to attached image > - The files to be updated would need to be organized according to > structure of the app or module to be patched > - Before the application is deployed the archive is extracted and > the files copied over to the mirrored location in the app or module to be > patched > > *Open Questions* > > - How do we handle reverting a patch? > - How can we apply the patch before Jaggery app is deployed? > > Thank You, > > Sameera > > > -- > Sameera Medagammaddegedara > Software Engineer > > Contact: > Email: samee...@wso2.com > Mobile: + 94 077 255 3005 > > _______________________________________________ > Architecture mailing list > Architecture@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * <http://www.apache.org/>* *email: **az...@wso2.com* <az...@wso2.com> * cell: +94 77 3320919 blog: **http://blog.afkham.org*<http://blog.afkham.org> *twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez <http://lk.linkedin.com/in/afkhamazeez>* *Lean . Enterprise . Middleware*
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture