我有一个小问题..我正在尝试使用'部署到bluemix'带有节点红色应用程序的按钮。这工作正常。我还想使用此按钮自动部署两个服务。对于一个服务它正在工作,另一个不会部署...这是我的清单文件:
applications:
- path: .
memory: 512M
instances: 1
name: LanguageTranslatorLT
host: LanguageTranslatorLT
disk_quota: 1024M
- services:
- LanguageTranslatorLT-cloudantNoSQLDB
- language-translator-service
name: language-translator-demo
env:
NODE_RED_STORAGE_NAME: LanguageTranslatorLT-cloudantNoSQLDB
declared-services:
LanguageTranslatorLT-cloudantNoSQLDB:
label: cloudantNoSQLDB
plan: Lite
language-translator-service:
label: language-translator
plan: advanced
语言翻译服务不会部署。当我使用按钮时,我收到此错误:
Binding service LanguageTranslatorLT-cloudantNoSQLDB to app LanguageTranslatorHB-1485255424408-hansb-1633 in org xxx / space dev2 as xxx...
OK
FAILED
Could not find service LanguageTranslatorLT-LanguageTranslator to bind to LanguageTranslatorHB-1485255424408-hansb-1633
Finished: FAILED
我想这是服务命名的内容,但我找不到它。也许其他人都知道?
答案 0 :(得分:0)
运行cf marketplace
时,语言翻译服务列为:
使用标准,高级和高级计划language_translator
(带下划线而非破折号)。
在您的清单文件中,您需要将该部分更正为:
language-translator-service:
label: language_translator
plan: advanced
答案 1 :(得分:0)
我认为对于语言翻译,您需要使用的标签是language_translator。 IE。
swiftc -static-stdlib Sources/main.swift Sources/array.swift Sources/check.swift
/usr/bin/ld.gold: error: cannot find -lFoundation
/tmp/main-3a78a1.o:/tmp/main-3a78a1.o:function main: error: undefined reference to '_TMV10Foundation12CharacterSet'
/tmp/main-3a78a1.o:/tmp/main-3a78a1.o:function main: error: undefined reference to '_TWPV10Foundation12CharacterSets10SetAlgebraS_'
/tmp/main-3a78a1.o:/tmp/main-3a78a1.o:function main: error: undefined reference to '_TFE10FoundationSS10componentsfT11separatedByVS_12CharacterSet_GSaSS_'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
您可以通过运行命令
来告诉您可以使用哪些服务
declared-services:
LanguageTranslatorLT-cloudantNoSQLDB:
label: cloudantNoSQLDB
plan: Lite
language-translator-service:
label: language_translator
plan: advanced
如创建自己的部署按钮的文档中所述。 - https://console.ng.bluemix.net/docs/develop/deploy_button.html