我想部署一個nodeJS原生應用程序到CF.我正在使用cf-runtime模塊來確定我的應用程序正在運行的真實服務器的IP和端口地址。然而,隨着加入cf運行時不工作
var cf = require('cf-runtime');
var local_port = 3000;
......
....business code....
}).listen(local_port);
console.log('Proxy server running at localhost:' + local_port);
console.log("host: " + app.host + " port: " + app.port);
我看到了如下錯誤:
Creating Application: OK Uploading Application: Checking for available resources: OK Processing resources: OK Packing application: OK Uploading (44K): OK Push Status: OK Staging Application 'leohu-proxy': OK Starting Application 'leohu-proxy': .......Error: Application 'leohu-proxy's state is undetermined, not enough information available.
[email protected]:~$ vmc logs leohu-proxy ====> /logs/staging.log <====
# Logfile created on 2012-10-07 17:41:24 +0000 by logger.rb/25413 Skipping npm support: npm-shrinkwrap.json is not provided
====> /logs/stdout.log <====
Proxy server running at localhost:3000 host: 172.30.49.236 port: 15669
誰能應歸結爲爲什麼,還是勸我在這裏做什麼?
以下問題可能是:我可以通過使用公開的主機和端口地址從另一個應用程序訪問此應用程序嗎?
對,它只是一個代理。你是對的健康管理把它拿下來,雖然我不知道爲什麼 – leohu