【问题标题】:WL 6.0. How to generate apk or ipa pointing to the right server without the worklightServerRootURLWL 6.0。如何在没有 worklightServerRootURL 的情况下生成指向正确服务器的 apk 或 ipa
【发布时间】:2013-08-18 18:56:05
【问题描述】:

我已阅读帖子:

IBM Worklight 6.0 - worklightserverhost attribute and the app-builder Ant task IBM Worklight - How to connect to another Worklight Server located in another machine in the same network? IBM Worklight 6.0 - application-descriptor.xml

而且我认为我遗漏了一些东西,因为它们都随着为其他服务器生成 wlapp 而停止。

生成和安装 wlapp 后,需要在环境中生成和 apk/ipa 或“运行方式”以执行该应用程序。

我遇到的问题是设备中部署的应用程序始终指向开发服务器,而不是指向我用于生成 .wlapp 文件的其他服务器(运行方式 -> 为远程服务器构建。 ..)。

我已尝试使用在 worklight.properites 中更改的属性“publicWorkLighHostname”部署应用程序,但没有效果。

如何将应用程序部署到指向所需服务器的设备?

谢谢。

【问题讨论】:

    标签: ibm-mobilefirst


    【解决方案1】:
    • Run As >> Build All and Deploy / Build 具体环境,指向本地开发服务器
    • 为远程服务器构建,指向您选择的服务器

    如果您在Build for Remote Server 之后执行Build All and Deploy,这将覆盖先前的操作,并且工件将再次指向本地开发机器。

    构建远程服务器也是如此。 Worklight Studio 知道将内容放在哪里,以便应用程序到达服务器。

    【讨论】:

    • 好吧,我没有意识到“为远程服务器构建”生成了 .wlapp 并重新生成了环境项目......所以在为远程服务器构建后,我必须直接去 xCode 或到Android项目并运行它。谢谢。
    猜你喜欢
    • 2016-06-26
    • 2010-09-14
    • 2019-03-20
    • 2020-10-18
    • 2012-08-07
    • 1970-01-01
    • 2021-06-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多