IBM Worklight - 如何连接到位于同一网络中另一台计算机上的另一台Worklight Server? [英] IBM Worklight - How to connect to another Worklight Server located in another machine in the same network?

查看:83
本文介绍了IBM Worklight - 如何连接到位于同一网络中另一台计算机上的另一台Worklight Server?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have setup Worklight Studio in my local Machine and developed a sample application. I need to deploy that application to a Worklight Server set up in another PC in the same network (LAN).

推荐答案

您已经在本地计算机中有一台服务器 - Worklight Studio包含一个内部Worklight Server。但这无关紧要......

You already have a server in your local machine - Worklight Studio contains an internal Worklight Server. But that doesn't matter...

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

If you are using Worklight 5.x:


  1. 打开 application-descriptor.xml

  2. 查找 worklightServerRootURL 元素

  3. 将其值更改为远程Worklight Server的值,例如: http:// myotherserver:8080

  4. 右键单击应用程序文件夹,然后选择:运行方式>> Build All and Deploy

  5. 获取 * - all.wlapp来自bin文件夹的和/或 * .adapter 文件,并通过驻留在其他服务器计算机中的Worklight Console进行部署。

  1. Open application-descriptor.xml
  2. Find the worklightServerRootURL element
  3. Change its value to that of the remote Worklight Server, for example: http://myotherserver:8080
  4. Right-click on the application folder and choose: Run As >> Build All and Deploy
  5. Take the *-all.wlapp and/or *.adapter files from the bin folder and deploy them via Worklight Console that resides in the other server machine.

如果您使用的是Worklight 6.0:

If you are using Worklight 6.0:


  1. 右键单击在应用程序文件夹上,选择:运行方式>> Build for Remote Server

  2. 输入其他服务器计算机的详细信息(主机,端口,上下文根)

  3. 从bin文件夹中获取 * - all.wlapp 和/或 * .adapter 文件并部署t通过驻留在其他服务器计算机中的Worklight Console进行下摆。

  1. Right-click on the application folder and choose: Run As >> Build for Remote Server
  2. Enter the details of the other server machine (host, port, context root)
  3. Take the *-all.wlapp and/or *.adapter files from the bin folder and deploy them via Worklight Console that resides in the other server machine.

以上假设远程服务器配置为接受您将部署的应用程序和/或适配器(即,您已部署项目的.war文件;你的场景不是很详细,所以我的解释有点令人兴奋。)

The above assumes that the remote server(s) are configured to accept the applications and/or adapters you will deploy (that is, that you have deployed the .war file of the project; your scenario was not very detailed so my explanations were somewhat lexing).

这篇关于IBM Worklight - 如何连接到位于同一网络中另一台计算机上的另一台Worklight Server?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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