この質問は何度か尋ねられました。しかし、私はここにこれを掲示するのを止めることができませんでした。私は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
"Herokuのは--stack杉を作成" します([ 'package.json'ファイル]を持っていますかhttps://github.com/heroku/heroku-buildpack-nodejs/blob/v8/bin/あなたのアプリで#L4を検出する)? – matt