Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rails et Heroku

Rails et Heroku

Démonstration de bootstrap d'application Rails avec Heroku au Startup Weekend Bordeaux (30 Juin 2012).

Vidéo :
http://vimeo.com/45066575

C1194b5728c155e195b223d91e1b0d77?s=128

Damian Le Nouaille

July 03, 2012
Tweet

Transcript

  1. @damln @damln www.dln.name Damian Le Nouaille

  2. curl -L https://get.rvm.io | bash -s stable INSTALL

  3. START! gem install rails rails new my_super_app cd my_super_app/ rails

    server
  4. None
  5. gem install heroku cd my_app/ heroku apps:create my_app

  6. git add . git commit -m ‘first’ git push heroku

    master
  7. “It’s cool, FREE & OPEN.”

  8. “It’s cool, FREE & PRIVATE.”

  9. None
  10. CONFIG

  11. None
  12. None
  13. guides.railsgirls.com

  14. ruby-toolbox.com bonjourgem.com

  15. DEMO (vidéo) rails new swbx cd swbx/ rails server http://0.0.0.0:3000

  16. DEMO (vidéo) rm public/index.html rails g scaffold Todo title:string body:text

    rake routes rake db:migrate
  17. DEMO (vidéo) git init git add . git commit -m

    ‘all’ heroku apps:create swbx (change ‘sqlite3’ to ‘pg’ in Gemfile) bundle install
  18. DEMO (vidéo) git commit -am ‘pg’ git push heroku master

    heroku run rake db:migrate 8-)