How to deploy MobileFirst CLI application to an android device?

淺唱寂寞╮ 提交于 2019-12-11 11:15:51

问题


I am using MobileFirst CLI 7.1. I want to deploy my MobileFirst CLI application to an android device. How can I do that?

In studio i use to get a projected generated when I right click > Build and depoly for all environments.

Also I want to know how can I target remote server. (In Studio we had an option to deploy to remote environment.)

Do we have any commands for achieving the above two?


回答1:


In studio i use to get a projected generated when I right click > Build and depoly for all environments.

You need to have google's ADT tools installed and execute the commands from the command-line, or import the project into Google's Android Studio IDE.

Also I want to know how can I target remote server. (In Studio we had an option to deploy to remote environment.)

In the Studio you did not have the option to "deploy to a remote server". You had the option to configure the application to point to a remote server (the properties you can edit in the worklight.plist/wlclient.properties file).

This feature does not exist in the CLI. After building the project, in case you want it to point to a different server, edit the properties in said file(s) to point to the remote server.



来源:https://stackoverflow.com/questions/35505335/how-to-deploy-mobilefirst-cli-application-to-an-android-device

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