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:
- Open
application-descriptor.xml
- Find the
worklightServerRootURL
element - Change its value to that of the remote Worklight Server, for example:
http://myotherserver:8080
- Right-click on the application folder and choose: Run As >> Build All and Deploy
- 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:
- Right-click on the application folder and choose: Run As >> Build for Remote Server
- Enter the details of the other server machine (host, port, context root)
- 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).