Node.js: простое приложение не работает на Heroku
мы написали базовое приложение node.js и яНам удалось развернуть его на Heroku без каких-либо проблем. Я'мы создали мойpackage.json а такжеPROCFILEТем не менее, из журналов я вижу, что нет запущенных процессов, поэтому не может получить никакого ответа. В чем может быть проблема?
PS:Я не хочу использоватьэкспресс фреймворк
Мой код:
var http = require("http");
http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
console.log("I am working");
}).listen(8888);
Мой пакет.json:
{
"name": "node-example",
"version": "0.0.1",
"dependencies": {
},
"engines": {
"node": "0.8.x",
"npm": "1.1.x"
}
}
Журналы:
2012-10-22T12:36:58+00:00 heroku[slugc]: Slug compilation started
2012-10-22T12:37:07+00:00 heroku[slugc]: Slug compilation finished
2012-10-22T12:40:55+00:00 heroku[router]: Error H14 (No web processes running) -> GET aqueous-bastion-6914.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-10-22T12:50:44+00:00 heroku[router]: Error H14 (No web processes running) -> GET aqueous-bastion-6914.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=