2013-08-21 12 views
7

この質問は何度か尋ねられました。しかし、私はここにこれを掲示するのを止めることができませんでした。私はnoobyです。私は次のコマンドを使ってgitからherokuにアプリをプッシュしようとしていますプッシュが拒否されました。シーダー対応アプリが見つかりませんでした

[email protected]:~/vexxx$ git push heroku master 

私は次のエラーが発生しています。

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 [email protected]:fast-fortress-3889.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:fast-fortress-3889.git' 

私はフレームワークにNode.jsの使用しようとしています

UPDATE

私は私のアプリのフォルダ名に2つのファイルを持っているvxxxx/

1.README.md

2.venkat1.js

Ins ide 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); 

私は他のファイルがありません。実際には、これら2つのファイルは私のgit repoにあります。

はい:私はHerokuのにプッシュし、Node.jsの

アップデート2を使用してそこにアプリケーションを実行しようとしています。私はパッケージを持っています.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", 
} 

とProcfileもあります。

web: node venkat1.js 
+0

"Herokuのは--stack杉を作成" します([ 'package.json'ファイル]を持っていますかhttps://github.com/heroku/heroku-buildpack-nodejs/blob/v8/bin/あなたのアプリで#L4を検出する)? – matt

答えて

4

は、実は問題は、私はそれが何の問題Herokuのに押しがなかったその後私は

$ npm install 

を使用node_modules

が含まれていなかったということでした。みんなに助けてくれてありがとう。

4

Herokuは、プロジェクト内の特定のファイルを探して、サポートされているアプリケーションを検出します。 Herokuのは、ここではこれらの「トリガー」を説明します。私は自分の質問に答えるのです

https://devcenter.heroku.com/articles/quickstart

3

私のレールプロジェクトを英雄にプッシュする際に同じ問題が発生しました。

私はherokuで作成する次のコマンドを使用しようとするまで、その後成功!これも試してみてください。

関連する問題