push app to heroku show message “no default language could be detected for this app” error handle.

Peggy Tsai 
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

即可排除錯誤

Peggy Tsai 

Written by

iOS & Golang 隨手記 www.linkedin.com/in/peggytsaifc

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade