push app to heroku show message “no default language could be detected for this app” error handle.
Nov 4 · 2 min read
(heroku,error handle)
在更新 至 Heroku時出現
no default language could be detected for this app.

可以透過本文進行除錯
此應用無設定語法 (Buildpacks)
可透過文字介面或網頁中進行設定
網頁
專案畫面中的Settings分頁

按 Add buildpack 按鈕

選擇語言,並按 Save changes儲存

完成語言設定,但需要重新deployed後才會啟用設定的語言

文字介面
在檔案路徑中,透過heroku cli方式進行設定(需先登入heroku)
heroku buildpacks:set heroku/go即可排除錯誤
