2017-04-26 126 views
1

我在bluemix上創建了一個示例node.js應用程序。我可以通過cf cli成功連接並登錄到bluemix。無法通過命令行將應用程序推送到bluemix

我正試圖將我的應用程序推送到bluemix。但是,得到以下錯誤:

C:\Study\node-js-workshop-amitpl>cf app push node-js-workshop-amitpl 
Showing health and status for app push in org AMSXYZ/space AMIT_Development as 
[email protected] 
App push not found 
FAILED 

嘗試下面的命令,這也失敗了:

C:\Study\node-js-workshop-amitpl>bluemix app push node-js-workshop 
-amitpl 
'bluemix' is not recognized as an internal or external command, 
operable program or batch file. 

什麼是錯上面的命令?

回答

0

推的CF命令是:

cf push APP-NAME 

所以,如果node-js-workshop-amitpl是你的APP-NAME,以下是你需要的東西:

C:\Study\node-js-workshop-amitpl>cf push node-js-workshop-amitpl 

注意,以前的命令行試圖運行用於檢索應用程序狀態的app命令:

> cf app --help 
NAME: 
    app - Display health and status for app 

USAGE: 
    cf app APP_NAME 

OPTIONS: 
    --guid  Retrieve and display the given app's guid. All other health and status output for the app is suppressed. 

SEE ALSO: 
    apps, events, logs, map-route, push, unmap-route 
+0

非常感謝克里斯,它按照你的建議工作:) –

+0

偉大的東西。你介意點擊接受按鈕並提出答案;) –

相關問題