我試圖在DotCloud上使用StrongOps啓動應用程序,但有關進程/應用程序的信息未顯示在儀表板中。很有用。 直接在代碼中傳遞的API密鑰和應用程序名稱。另外,我嘗試設置ENV變量(SL_APP_NAME和SL_KEY),但沒有結果。無法在DotCloud上工作
應用程序名稱 - 是隨機字符串,並且不代表任何實際變量,對不對?
日誌。只有這樣
strong-agent profiling
Cluster controls unavailable.
我的代碼
require('strong-agent').profile(KEY,APP_NAME);
我的package.json
{
"name": "slovohvat",
"version": "0.0.2",
"strongAgentKey": "607dbd9b5cd4c6dd20ae05d128b63652",
"scripts": {
"start": "node app.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"express": "3.4.0",
"nunjucks": "0.1.9",
"socket.io": "0.9.16",
"bigint-node": "1.0.1",
"connect": "2.9.0",
"request":"2.27.0",
"node-logentries": "0.0.2",
"redis": "0.8.6",
"socket.io-clusterhub": "0.2.0",
"connect-redis": "1.4.x",
"async": "0.2.9",
"nodetime": ">=0.8.0",
"emailjs ":"0.3.6",
"strong-agent":"0.2.18",
"raygun": "~0.3.0"
},
"repository": "",
"author": "",
"license": "BSD"
}
而且我dotcloud.yaml
www:
type: nodejs
approot: app
process: node app.js 0
config:
node_version: v0.8.x
smtp_server: smtp.XXX.org
smtp_port: 587
smtp_username: [email protected]
smtp_password: XXX
data:
type: redis
strongloop.json存在於同一目錄作爲dotcloud .yaml並且看起來正確。
請給我任何建議,我應該嘗試。 謝謝。對不起,我的英語:)