結合Line Bot進行部署, Line Bot申請請參考 這裏
免費帳號每個月
在Node.js中會以
process.ENV.設定的KEY
變數呈現
5. 部署設定
可以使用Github自動pull部署,也可以直接將git remote到heroku
先下載Heroku CLI https://devcenter.heroku.com/articles/heroku-cli
heroku login
,並依指示輸入email與密碼
git push heroku "在Setting看到的heroku.git網址"
git push --set-upstream heroku master
看到這個樣子就是部署成功了!
Domain在Setting中可以看到
放到Linebot設定的webhook url就大功告成!可以按Verify看有沒有連接成功