Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 将Geddy部署到Heroku_Node.js_Deployment_Heroku_Geddy - Fatal编程技术网

Node.js 将Geddy部署到Heroku

Node.js 将Geddy部署到Heroku,node.js,deployment,heroku,geddy,Node.js,Deployment,Heroku,Geddy,我正在尝试将一个简单的(node.js)应用程序部署到 当我推送时,接收到该错误: git推送heroku主机 Heroku receiving push Heroku push rejected, no Cedar-supported app detected 我要怎么做才能让heroku检测到nodejs应用程序?您为cedar做了几件事?您需要明确地说出来(我相信您已经做了,但这里是为了完整性) heroku创建——stack cedar 确保package.json位于根目录下 你现

我正在尝试将一个简单的(node.js)应用程序部署到

当我推送时,接收到该错误:

git推送heroku主机

Heroku receiving push
Heroku push rejected, no Cedar-supported app detected

我要怎么做才能让heroku检测到nodejs应用程序?

您为cedar做了几件事?您需要明确地说出来(我相信您已经做了,但这里是为了完整性)

heroku创建——stack cedar

确保package.json位于根目录下

你现在应该能


git-push-heroku-master

您为cedar做了几件事您需要明确地说出来(我相信您做了这些,但这里是为了完整性)

heroku创建——stack cedar

确保package.json位于根目录下

你现在应该可以


git-push-heroku-master

已将Procfile和package.json添加到本地git-repo中。并犯下了这些罪行

我已经创建了它们,但忘记添加和提交它们,所以推送时这些文件没有上传,因此Heroku不知道应用程序的类型

添加、提交和重新推送修复了此问题


当您知道:-)

您已将Procfile和package.json添加到本地git repo中。并犯下了这些罪行

我已经创建了它们,但忘记添加和提交它们,所以推送时这些文件没有上传,因此Heroku不知道应用程序的类型

添加、提交和重新推送修复了此问题

当你知道的时候,很明显:-)