IBM Worklight - How to connect to another Workligh

2019-01-20 05:33发布

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条回答
ら.Afraid
2楼-- · 2019-01-20 06:07

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

查看更多
登录 后发表回答