IBM Worklight - 如何检索已部署的.wlapp文件? [英] IBM Worklight - How to retrieve an already-deployed .wlapp file?

查看:151
本文介绍了IBM Worklight - 如何检索已部署的.wlapp文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已经运行的Worklight应用程序。我们计划明天转移到另一个生产集群,但我希望得到已经部署在第一个集群上的旧.wlapp。

I have an already running Worklight application. We are planning to move to another production cluster tomorrow but I want to get the old .wlapp that is already deployed on the first cluster.

我怎样才能得到它?我可以在WebSphere应用程序服务器的临时文件中找到一个目录,但它是一个爆炸形式。当我压缩其中一个并将其转换为.wlapp时,部署成功,我有一个直接更新,应用程序无法启动...

How can I get it? I could find a directory on the temp file of the WebSphere application server, but it is in an exploded form. When I zipped one of them and converted it to .wlapp, while the deployment was successfull, I had a Direct Update and the application failed to start...

是吗正确的路径?

推荐答案

在Worklight Studio中构建应用程序时,构建会生成.wlapp文件并将它们存储在 yourProject\bin 文件夹,除非您手动删除这些文件,否则这些文件不会从bin文件夹中删除。

When you build your application in Worklight Studio, the build produces .wlapp files and stores them in the yourProject\bin folder, these files do not get deleted from the bin folder unless you've manually deleted them.


  • appname-envname-version.wlapp

  • appname-common-version.wlapp

  • appname-all.wlapp

版本值的变化取决于您在 yourProject\yourApp\application-descriptor.xml

Where the version value changes depending on the value you've set in yourProject\yourApp\application-descriptor.xml.

一个好的做法是备份你的不同版本的工件以及项目源代码(使用源代码控制系统......),因此您可以随时恢复任何版本sion ...尤其是如果你在谈论已经在生产....

A good practice would be to backup your artifacts of different versions as well as project source code (using a source control system...), so you could always restore any version... esp. if you're talking about already being in Production....

部署后,.wlapp文件不存储在文件系统中,但在数据库中。

After deployment, the .wlapp file is not stored in the filesystem, but in the database.

如果有备份,那么检索以前部署的.wlapp文件(这是非常的)坏,BTW),它们存储在数据库的可部署列的 APP_SYNC_DATA 表中。您可以尝试将与您相关的APP_SYNC_DATA.deployable数据提取并保存为.wlapp文件。

So as for retrieving previously deployed .wlapp files if you do not have backup (this is very bad, BTW), these are stored in your database in the APP_SYNC_DATA table in the deployable column. You can try to extract and save the APP_SYNC_DATA.deployable data relevant for you as a .wlapp file.

但这并不能保证它会更好地工作比你的其他尝试。该.wlapp配置为使用某些服务器URL,如果这个新集群不是以前集群的副本,我也看不到这个工作......但是,如果不知道更多关于你得到的错误,谁知道他们有什么关系(但这不是这个问题)。

But this really does not guarantee that it will "work" any better than your other attempt. That .wlapp is configured to work with certain server URLs, and if this new cluster is not a replica of the previous cluster, I don't see this working either... But also, without knowing more about the errors you get, who knows to what they are related (but this is NOT for this question).

这篇关于IBM Worklight - 如何检索已部署的.wlapp文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆