推送拒绝,未检测到Cedar支持的应用

Ven*_*raj 7 git heroku

我知道这个问题已被问过好几次了.但我无法阻止自己在这里发布.我很性感.我正在尝试使用以下命令将应用程序从git推送到heroku

ubuntu@ip-1x2-xx-xx-xxx:~/vexxx$ git push heroku master
Run Code Online (Sandbox Code Playgroud)

我收到以下错误.

Counting objects: 8, done.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (8/8), 1015 bytes, done.
Total 8 (delta 0), reused 0 (delta 0)


 !     Push rejected, no Cedar-supported app detected

To git@heroku.com:fast-fortress-3889.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:fast-fortress-3889.git'
Run Code Online (Sandbox Code Playgroud)

我正在尝试使用node.js框架

UPDATE

我的app文件夹名称中有两个文件名vxxxx /

1.README.md

2.venkat1.js

在venkat1.js里面

    #!/usr/bin/env node
var fs = require('fs');
var outfile = "hello.txt";
var out = "A startup is a business built to grow rapidly.\n";
fs.writeFileSync(outfile, out);  
console.log("Script: " + __filename + "\nWrote: " + out + "To: " + outfile);
Run Code Online (Sandbox Code Playgroud)

我没有任何其他文件.实际上这两个文件都在我的git repo中.我正在尝试将其推送到heroku并使用node.js在那里运行应用程序

更新2:

是.我有一个package.JSON文件

{
  "name": "vxxxxx",
  "version": "0.0.2",
  "description": "a sample node.js app for heroku",
  "main": "venkat1.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "dependencies": {
    "express": "~3.3.4"
  },
  "engines": {
    "node": "0.10.13",
    "npm": "1.3.2"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/Mygitusername/myreponame"
  },
  "keywords": [
    "node",
    "heroku"
  ],
  "author": "Venkateshwaran",
  "license": "MIT",
}
Run Code Online (Sandbox Code Playgroud)

还有一个Procfile.

web: node venkat1.js
Run Code Online (Sandbox Code Playgroud)

Ven*_*raj 4

我正在回答我自己的问题。

其实问题是我没有包含node_modules

所以我用了

$ npm install
Run Code Online (Sandbox Code Playgroud)

之后推入heroku就没有问题了。感谢大家对我的帮助。