gpt4 book ai didi

heroku - 如何获得在 heroku 上运行的基本 kraken-js 应用程序?

转载 作者:行者123 更新时间:2023-12-01 15:31:34 27 4
gpt4 key购买 nike

我正在尝试托管在 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 网络:节点索引.js使用要执行的命令启动网络测功机。

当我使用时,这个简单的应用程序可以在我的本地环境中运行 工头开始我可以通过以下方式浏览 hello world 页面 本地主机: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"
}
}

最佳答案

这已从 Kraken v0.7.0 开始修复

无需特殊操作!

关于heroku - 如何获得在 heroku 上运行的基本 kraken-js 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20321095/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com