无法将我的应用注册到MFP删除服务器

时间:2017-01-22 18:56:23

标签: ibm-mobilefirst

我在将应用程序部署到远程服务器时遇到问题。这是我在尝试运行cli add命令时遇到的错误:

mfpdev服务器添加myqaserver --ur https://mbmfp.mycompany.com - 登录管理员 - 密码aaaa --setdefault

错误:网址' https://mbmfp.mycompany.com'无效。该URL必须具有以下格式' protocol:// host:port'。运行' mfpdev帮助服务器添加'了解更多信息。

我的主机名称https://mbmfp.mycompany.com包含端口。因此,再次添加端口将导致问题

最初,我尝试了register命令,并提示使用add命令

mfpdev app register https://mbmfp.mycompany.com mfp

如何解决此问题?

INFO IBM MFP版本8.0.0-2016121916

由于

1 个答案:

答案 0 :(得分:0)

看起来你没有正确执行命令......

以下是一个例子:

mfpdev server add

? Enter the name of the new server definition: mydevserver
? Enter the fully qualified URL of this server: http://mydevserver.example.com:9080
? Enter the MobileFirst Server administrator login ID: admin
? Enter the MobileFirst Server administrator password: admin
? Save the admin password for this server?: Yes
? Enter the context root of the MobileFirst administration services: mfpadmin
? Enter the MobileFirst Server connection timeout in seconds: 30
Verifying server configuration...
The following runtimes are currently installed on this server: mfp
Server profile 'mydevserver' added successfully.

然后,导航到应用程序的根文件夹并:

mfpdev app register mydevserver

点击此处了解详情:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/application-development/using-mobilefirst-cli-to-manage-mobilefirst-artifacts/#add-a-new-server-instance