我正在尝试托管在heroku上设置准系统kraken-js应用程序时出现的默认应用程序,我收到以下错误:
$ heroku ps:scale web=1
Scaling web dynos... done, now running 1
$ heroku ps
=== web (1X): `node index.js`
web.1: crashed 2013/12/01 17:35:26 (~ 4m ago)
$ heroku logs
2013-12-02T01:07:09+00:00 heroku[slug-compiler]: Slug compilation started
2013-12-02T01:07:33+00:00 heroku[slug-compiler]: Slug compilation finished
2013-12-02T01:07:38.678103+00:00 heroku[web.1]: Starting process with command `node index.js`
2013-12-02T01:07:39.524560+00:00 app[web.1]: [TypeError: Arguments to path.join must be strings]
2013-12-02T01:07:40.563355+00:00 heroku[web.1]: Process exited with status 0
2013-12-02T01:07:40.607963+00:00 heroku[web.1]: State changed from starting to crashed
2013-12-02T01:07:40.609066+00:00 heroku[web.1]: State changed from crashed to starting
2013-12-02T01:07:43.067843+00:00 heroku[web.1]: Starting process with command `node index.js`
2013-12-02T01:07:44.542123+00:00 app[web.1]: [TypeError: Arguments to path.join must be strings]
2013-12-02T01:07:45.675718+00:00 heroku[web.1]: Process exited with status 0
2013-12-02T01:07:45.706079+00:00 heroku[web.1]: State changed from starting to crashed
2013-12-02T01:07:55.027410+00:00 heroku[api]: Scale to web=1 by [**email@address.com**]
2013-12-02T01:07:32.834177+00:00 heroku[api]: Scale to web=1 by [**email@address.com**]
2013-12-02T01:07:32.869073+00:00 heroku[api]: Add PATH config by [**email@address.com**]
2013-12-02T01:07:32.902126+00:00 heroku[api]: Release v3 created by [**email@address.com**]
2013-12-02T01:07:32.970126+00:00 heroku[api]: Deploy 108a492 by [**email@address.com**]
2013-12-02T01:07:33.003919+00:00 heroku[api]: Release v4 created by [**email@address.com**]
2013-12-02T01:09:46.242570+00:00 heroku[api]: Scale to web=1 by [**email@address.com**]
2013-12-02T01:09:51.867085+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=shrouded-thicket-6905.herokuapp.com fwd="24.87.73.5" dyno= connect= service= status=503 bytes=
2013-12-02T01:09:52.551619+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=shrouded-thicket-6905.herokuapp.com fwd="24.87.73.5" dyno= connect= service= status=503 bytes=
2013-12-02T01:16:30.083346+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=shrouded-thicket-6905.herokuapp.com fwd="24.87.73.5" dyno= connect= service= status=503 bytes=
2013-12-02T01:16:29.843983+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=shrouded-thicket-6905.herokuapp.com fwd="24.87.73.5" dyno= connect= service= status=503 bytes=
我有一个包含以下行的Procfile web:node index.js 使用要执行的命令来启动web dyno。
当我使用时,这个简单的应用程序可以在我的本地环境中使用 工头开始 我可以通过去浏览你好的世界页面 本地主机:5000
我需要配置不同的东西吗? 这是默认的package.json
{
"name": "kraken",
"version": "0.0.1",
"description": "prototype",
"author": "laura cabrera",
"main": "index.js",
"scripts": {
"test": "grunt test",
"start": "node index.js"
},
"engines": {
"node": ">=0.10.0"
},
"dependencies": {
"kraken-js": "~0.6.1",
"express": "~3.4.4",
"adaro": "~0.1.x",
"nconf": "~0.6.8",
"less": "~1.3.3",
"dustjs-linkedin": "~2.0.3",
"dustjs-helpers": "~1.1.1",
"makara": "~0.3.0"
},
"devDependencies": {
"mocha": "~1.10.0",
"grunt": "~0.4.1",
"grunt-contrib-less": "~0.7.0",
"grunt-dustjs": "~1.1.1",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-jshint": "~0.6.4",
"grunt-mocha-cli": "~1.3.0",
"grunt-contrib-requirejs": "~0.4.1"
}
}
答案 0 :(得分:1)
这是在Kraken v0.7.0
中修复的无需特殊操作!
答案 1 :(得分:0)
我为此向Kraken提交了一个错误: