終於到了今天,要push上heroku了。
本文參考官方文件實作:
- Rails 5 and Heroku: https://devcenter.heroku.com/articles/getting-started-with-rails5
- Multiple buildpacks: https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app
- Heroku CLI: https://devcenter.heroku.com/articles/heroku-cli
Heroku Command Line:
然後先create app:
先加入builpacks for ruby and npm:
加入postgres addons:
push to heroku
db:migrate
如果噴error,請看http://stackoverflow.com/questions/20293895/rails-4-0-1-on-heroku-cant-create-database
搞定囉!!
請上 https://it-help-rrrr.herokuapp.com/ 看看結果~
倒數第二天!!要結束啦~~~