【问题标题】:IBM Worklight - How to connect to another Worklight Server located in another machine in the same network?IBM Worklight - 如何连接到位于同一网络中另一台机器上的另一台 Worklight 服务器?
【发布时间】:2013-07-09 06:16:10
【问题描述】:

我已经在我的本地机器上设置了 Worklight Studio 并开发了一个示例应用程序。我需要将该应用程序部署到在同一网络 (LAN) 中的另一台 PC 中设置的 Worklight Server。

【问题讨论】:

    标签: ibm-mobilefirst worklight-studio worklight-server


    【解决方案1】:

    您的本地机器中已经有一个服务器 - Worklight Studio 包含一个内部 Worklight Server。不过没关系……

    如果您使用的是 Worklight 5.x:

    1. 打开application-descriptor.xml
    2. 找到worklightServerRootURL 元素
    3. 将其值更改为远程 Worklight Server 的值,例如:http://myotherserver:8080
    4. 右键单击应用程序文件夹并选择:Run As >> Build All and Deploy
    5. 从 bin 文件夹中获取 *-all.wlapp 和/或 *.adapter 文件,并通过驻留在其他服务器计算机中的 Worklight Console 部署它们。

    如果您使用的是 Worklight 6.0:

    1. 右键单击应用程序文件夹并选择:Run As >> Build for Remote Server
    2. 输入其他服务器机器的详细信息(主机、端口、上下文根)
    3. 从 bin 文件夹中获取 *-all.wlapp 和/或 *.adapter 文件,并通过驻留在其他服务器计算机中的 Worklight Console 部署它们。

    以上假设远程服务器配置为接受您将部署的应用程序和/或适配器(也就是说,您已经部署了项目的 .war 文件;您的场景不是很详细,所以我的解释有点词法化)。

    【讨论】:

    • 在哪里可以找到 application-descriptor.xml?
    • 请阅读培训资料。描述符文件位于 Eclipse 中应用程序的根文件夹中。
    猜你喜欢
    • 2023-03-23
    • 1970-01-01
    • 2023-03-21
    • 2011-10-31
    • 1970-01-01
    • 2017-07-26
    • 1970-01-01
    • 1970-01-01
    • 2019-03-24
    相关资源
    最近更新 更多