2011-07-22 17 views
2

答案:不要將Gemfile放入Node.js項目的根目錄中。 Heroku變得困惑,並將其視爲Ruby應用程序。遵循Node.js的Heroku指令後的錯誤

我試圖按照從Heroku的文件中的說明,但我收到一個錯誤:「沒有這樣的文件或目錄 - 節點web.js」。如預期

我Procfile是...

web: node web.js 

福爾曼在本地運行。

這裏有一個記錄快照...

2011-07-21T23:28:49+00:00 heroku[web.1]: State changed from starting to crashed 
2011-07-21T23:37:50+00:00 heroku[web.1]: State changed from crashed to created 
2011-07-21T23:37:50+00:00 heroku[web.1]: State changed from created to starting 
2011-07-21T23:37:51+00:00 heroku[web.1]: Starting process with command: `node web.js` 
2011-07-21T23:37:51+00:00 app[web.1]: Error: No such file or directory - node web.js 
2011-07-21T23:37:52+00:00 heroku[web.1]: Process exited 

我的Heroku的ps的輸出...

Process State Command 
------------ ------------------ ------------------------------ 
web.1 crashed for 8m node web.js 

來源是https://github.com/just3ws/hellode

如果沒有在本地運行我前進,並假設它只是我。

在此先感謝。

+0

可能想看看我的入門指南,看看你是否錯過了一些東西:http://www.jamesward.com/2011/06/21 /工具入門-與節點-JS-上的雲/ –

+0

@詹姆斯的感謝,我經歷了和審覈您的文章。一切似乎都在我的網站上。我沒有做的唯一事情就是重命名Heroku應用程序。我覺得這實際上可能是在Heroku的端的問題,但我願意接受它可能是PEBKAC。 –

+0

你創建了「雪松」的應用程序棧? –

回答