简体   繁体   English

Bluemix Mobile Foundation上MobileFirst的主机名,端口和wlservercontext

[英]Hostname, port and wlservercontext of MobileFirst on Bluemix Mobile Foundation

I have done the following: 我已经完成以下工作:

  1. Created an account on Bluemix and added the "Mobile Foundation" service. 在Bluemix上创建了一个帐户,并添加了“ Mobile Foundation”服务。
  2. I have then logged into the MobileFirst Operations Console and created an iOS application 然后,我登录到MobileFirst Operations Console并创建了一个iOS应用程序
  3. Downloaded the sample c=Cordova application and added platform iOS 下载了示例c = Cordova应用程序并添加了平台iOS
  4. The sample application has a button to test ping, which fails 该示例应用程序具有一个用于测试ping的按钮,该按钮失败

I need the host name, port and wlservercontext to be set in the mfpclient.plist file. 我需要在mfpclient.plist文件中设置主机名,端口和wlservercontext。 How/From where can I get these? 如何/从哪里可以得到这些?

描述符文件

You need to register your application with the MobileFirst Server instance that you're running in the Mobile Foundation service. 您需要向在Mobile Foundation服务中运行的MobileFirst Server实例注册应用程序。

Did you read the tutorial...? 您读过教程了吗? See here: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/quick-start/ 参见此处: https : //mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/quick-start/

What you want to do is: 您想要做的是:

  1. Ensure that you have the MobileFirst CLI installed ( npm install mfpdev-cli ) 确保已安装MobileFirst CLI( npm install mfpdev-cli
  2. Add the remote server to the CLI ( mfpdev server add , see example here 将远程服务器添加到CLI( mfpdev server add请参见此处的示例
  3. Register the app: 注册应用程序:

    • Navigate to the project root folder in command-line 在命令行中导航到项目根文件夹
    • Run the command: mfpdev app register your-remote-server-name-from-step-2 - This step adds the details you've mentioned into the .plist file. 运行命令: mfpdev app register your-remote-server-name-from-step-2此步骤将您提到的详细信息添加到.plist文件中。
  4. Build the app again in Xcode 在Xcode中再次构建应用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IBM Mobilefirst Foundation 6.3-图像缓存解决方案 - IBM Mobilefirst foundation 6.3 - Image caching solution MobileFirst Foundation Platform 6.3-用人行横道代替科尔多瓦 - MobileFirst Foundation Platform 6.3 - Replacing Cordova with Crosswalk IBM MobileFirst Foundation 8.0 Cordova入门应用程序在iOS模拟器中崩溃 - IBM MobileFirst Foundation 8.0 Cordova starter application crashes in iOS simulator MobileFirst Foundation SDK 8.0初始化失败:无法读取checksum.js - MobileFirst Foundation SDK 8.0 Init failure: Can't read checksum.js 使用移动浏览器模拟器从相册获取照片在MobileFirst中不起作用 - Get Photo from album is not working in MobileFirst using mobile browser simulator IBM Bluemix-无法通过移动数据GUI导入JSON - IBM Bluemix - Unable to import JSON through the Mobile Data GUI IBM MObile First中的推送通知:更好地用于发送推送通知,MobileFirst Operations Console或通过REST API - Push Notifications in IBM MObile First: Which is better for sending push notification, MobileFirst Operations Console or via REST APIs 带有MobileFirst 8的Ionic 2 - Ionic 2 with MobileFirst 8 Angular App to AppGyver-移动解决方案 - Angular App to AppGyver- Port to Mobile Solution jQuery Mobile和PhoneGap-Android端口问题 - Jquery Mobile & PhoneGap - Android Port issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM