IBM Worklight - How to connect to another Worklight Server located in another machine in the same network?

自闭症网瘾萝莉.ら 提交于 2019-11-27 07:28:04

问题


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).


回答1:


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

If you are using Worklight 5.x:

  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.

If you are using Worklight 6.0:

  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.

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).



来源:https://stackoverflow.com/questions/17585522/ibm-worklight-how-to-connect-to-another-worklight-server-located-in-another-ma

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!