我試圖將項目推送到Heroku,並且收到錯誤「未檢測到默認語言」。我的項目是建立在節點和結構如下:無法將項目推送到Heroku「沒有檢測到默認語言」
project/
.gitignore
Procfile
server/
package.json
index.js
...etc
在我Procfile(因爲我的package.json不位於項目的根),我有下面的代碼行:
Procfile:
web: node index.js
我通過運行推: git push heroku master
然後我得到錯誤「沒有檢測到默認語言」,儘管我最好的谷歌/搜索努力,我找不到一個適當的解決方案,以通過這一點。我在這裏錯過了什麼?
可能重複的[無法推送到heroku](https://stackoverflow.com/questions/38841284/cant-push-to-the-heroku) –