PaaS
IaaS (Infrastracture as a Service)
ࣗͰαʔόʔΛ༻ҙ͠ͳ͍͍ͯ͘ʂ
SaaS (Software as a Service)
ࣗͰΞϓϦΛ࡞Βͳ͍͍ͯ͘ʂ
PaaS (Platform as a Service)
ࣗͰαʔόʔͷηοτΞοϓ͠ͳ͍͍ͯ͘ʂ
Saturday, June 21, 14
Deploy app to Heroku
1. ΞϓϦΛGitHub͔Βམͱͯ͘͠Δ
2. ϩʔΧϧͰΒͤͯΈΔ
3. git push heroku master
Saturday, June 21, 14
Slide 15
Slide 15 text
Clone app from GitHub
$ git clone https:/
/github.com/keiko713/rails-
todo.git
ࠓճ͋·Γ࣌ؒͳ͍ͷͰɺrails newͳ
Ͳඈ͠·͢
Saturday, June 21, 14
Slide 16
Slide 16 text
Run app locally
$ cd rails-todo
$ bundle install --without production
$ foreman run bundle exec rake db:migrate
$ foreman start
http://localhost:5000/ Λ։͍ͯΞϓϦ͕
ಈ͍͍ͯΔ͔֬ೝ
Saturday, June 21, 14
Slide 17
Slide 17 text
Deploy
$ heroku create # create an app
$ git remote -v # who the list of remotes
$ heroku rename # rename
$ git push heroku master # deploy!
$ heroku run rake db:migrate # db migrate
$ heroku open # open the app in browser
Saturday, June 21, 14