Wiem, że to pytanie zostało zadane kilka razy. Ale nie mogłem się powstrzymać, by opublikować to tutaj. Jestem nooby. Próbuję przesłać aplikację z git do heroku za pomocą następującego polecenia:Push odrzucono, nie wykryto aplikacji obsługiwanej przez Cedry.
Otrzymuję następujący błąd.
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'
Próbuję użyć node.js ramowa
UPDATE
Mam dwa pliki w moim app nazwy folderu 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);
Nie mam żadnych innych plików. Właściwie te dwa pliki są w moim repozytorium git. Staram się przesunąć do Heroku i uruchomić aplikację, nie używając node.js
UPDATE 2:
Tak. Mam package.JSON złożyć
{
"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",
}
i Procfile też.
web: node venkat1.js
Czy masz [ '] (plik package.json' https://github.com/heroku/heroku-buildpack-nodejs/blob/v8/bin/ wykryć # L4) w swojej aplikacji? – matt