部署失敗:failed to execute prompt script

在搭建好部落格、龜毛地設定了root配置檔,然後抱持著既期待又怕受傷害的心情,在CLI敲下部署指令後,得到了error: failed to execute prompt script (exit code 1)這這般無情的回應…嗯,部署失敗! 我X,都還沒發文呢。

Solution

找到Blog根目錄下的root配置檔_config.yml,修正部署設定。

原始設定:

1
2
3
4
deploy:
type: git
repository: https://github.com/username/username.github.io.git
branch: master

修改為:

1
2
3
4
deploy:
type: git
repository: https://username:[email protected]/username/username.github.io.git
branch: master

部署成功 : )

*參考資料