0

How to bind my javascript web app on IBM Bluemix with any Watson API service created by me in Manifest.yml?

We followed the following tutorials to make tthis Watson Car Conversation - Simple app demo to work on my local computer and Bluemix hosting. https://github.com/eGlobeBizCom/conversation-simple This Q is also posted at the comments section of this video https://www.youtube.com/watch?v=9M86BfL9KX0

*This demo app can work on my local computer; *But deploying the above app to Bluemix, not successful.

The problem: After type "cf push" on Gitbash, the results: Most steps are deployed, this step gives me the failed message:

Failed. Could not find service conversation - free to bind to WatsonCarApp (This is the app name in the manifest.yml, I gave this app name)

Many searches on the web have no helpful info. IBM Bluemix hosting and Watson API Service teams really need to improve tutorial and tech support. Any suggestions will be appreciated.</p>

4

2 回答 2

1

您的 manifest.yml 文件需要一个名为 的 Watson Conversation 服务conversation-free,因此在推送应用程序之前,您需要运行以下命令来创建此服务:

$ cf create-service conversation free conversation-free

之后,您可以运行cf push以部署您的应用程序。

这些应该可以解决您看到的关于找不到conversation-free服务的错误。

如果您通过 UI 创建了 Watson 对话服务,请使用类似于以下的 manifest.yml 文件来部署您的应用程序:

applications:
- name: WatsonCarApp
  services:
  - Conversation-4i
  command: npm start
  path: .
  instances: 1
  memory: 512MB

PS:manifest.yml 假设您的应用程序名称是WatsonCarApp并且您的服务名称是Conversation-4i

于 2016-08-04T22:03:38.243 回答
0

现在,上面的演示应用程序可以在我的 Bluemix 帐户中运行。不熟悉 Bluemix 或 Watson 应用程序的人需要仔细阅读上述评论,以便让应用程序在 Bluemix 上运行。感谢 Alex 的及时回复。

希望了解 Watson 对话 API 的人可以回复我以下与此相关的 Q: IBM Watson Car-Dashboard demo 在我的这个演示副本中对我的一些 Q 给出了错误的回复

于 2016-08-06T07:20:23.173 回答