Ruby on Rails [ Ruby On Rails.ppt ] - [Ruby - [Ruby-Doc.org ...
Ruby on Rails CMS - on the cloud
-
Upload
mpolakis -
Category
Technology
-
view
1.351 -
download
3
description
Transcript of Ruby on Rails CMS - on the cloud
![Page 1: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/1.jpg)
Michalis Polakis, TaratsaCamp, Chania 7/7/2001
Host your Ruby on Rails CMS on the cloud – for free!
![Page 2: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/2.jpg)
about me
Michalis Polakis=> csd.uoc.gr, [email protected],
soundcloud.com, filoxena.com
=> photos
=> entrepreneurship
![Page 3: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/3.jpg)
about this talk
=> ruby
=> on Rails
=> refinery cms
=> git
=> cloud
=> heroku
=> put the pieces together
![Page 4: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/4.jpg)
ruby
=> user friendly
=> dynamic, reflective, garbage collected, interpreted
=> jruby, ironruby, macruby
![Page 5: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/5.jpg)
Ruby examples
![Page 6: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/6.jpg)
ruby on rails
=> open source web app framework
=> Model-View-Controller (MVC)
=> Convention over Configuration– Reduce decisions. If Order model => orders db table
=> Don't Repeat Yourself (DRY)– Every piece of knowledge must have a single,
unambiguous, authoritative representation
![Page 7: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/7.jpg)
model view controller
![Page 8: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/8.jpg)
refinery cms
=> most popular rails cms
=> “follows the rails (3) way”
=> simple, modular, extendable
=> good enough
![Page 9: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/9.jpg)
git
=> distributed revision control system
=> by Linus for Linus
=> every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities
=> independent of network access or central server
![Page 10: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/10.jpg)
basic git workflow (from scratch)
$ cd (project-directory)
$ git init
$ (add some files)
$ git add .
$ git commit -m 'first commit'
![Page 11: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/11.jpg)
![Page 12: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/12.jpg)
heroku
=> user friendly web app deployment/management/scaling
– rack apps(rails, sinatra)x, node.js, clojure
=> sits on top of AWS – goes down when AWS goes down
=> easy to migrate away from– no lock-in
=> stack promotes best practices
![Page 13: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/13.jpg)
heroku cont.
=> basic package can get you a long way
=> read-only filesystem
=> git-based deployment
![Page 14: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/14.jpg)
putting the pieces together=> prerequisites : ruby, rubygems, rails, sqlite3/mysql, git
$ gem install refinerycms heroku
=> set your heroku credentials/ssh keys
$ refinerycms mysimplecms –heroku
=> edit Gemfile, add “ gem 'rake', '~> 0.8.7' ”
$ bundle update
![Page 15: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/15.jpg)
putting the pieces together cont.
$ git init
$ git add .
$ git commit -m “first commit!”
$ heroku create
$ git push heroku master
$ heroku rake db:migrate
![Page 16: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/16.jpg)
![Page 17: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/17.jpg)
references
=> wikipedia
=> ruby-lang.org, rubyonrails.org
=> refinerycms.com
=> git-scm.com
=> heroku.com
=> http://devcenter.heroku.com/articles/quickstart
=> cloud photo courtesy of jonicdao (www.flickr.com/photos/jonicdao/3450233884)
![Page 18: Ruby on Rails CMS - on the cloud](https://reader034.fdocuments.us/reader034/viewer/2022051514/549c94acb47959fe318b47a0/html5/thumbnails/18.jpg)
thanks!