我正在尝试将我的快速应用程序部署到Heroku,但我不断收到“推送被拒绝,没有检测到Cedar支持的应用程序”的错误,但我确保使用npm从教程中定义package.json和Procfile。初始化。
这是我的package.json文件:
{
"name": "ClassMatch",
"version": "0.0.1",
"description": "Compare Schedules",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/jzone3/ClassMatch.git"
},
"keywords": [
"example",
"heroku"
],
"author": "Paras Modi, Jared Zoneraich",
"license": "BSD-2-Clause",
"bugs": {
"url": "https://github.com/jzone3/ClassMatch/issues"
},
"homepage": "https://github.com/jzone3/ClassMatch",
"dependencies": {
"mongoose": "~3.8.11",
"express": "~3.5.1",
"hjs": "~0.0.6"
},
"devDependencies": {}
}
这是我的Procfile,就像示例那样:
web: node app.js
我的文件设置如下:
/
-node_modules/
-public/
-views/
-app.js
-favicon.ico
-package.json
-Procfile
-README.md