18
Michalis Polakis, TaratsaCamp, Chania 7/7/2001 Host your Ruby on Rails CMS on the cloud – for free!

Ruby on Rails CMS - on the cloud

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Ruby on Rails CMS - on the cloud

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

about me

Michalis Polakis=> csd.uoc.gr, [email protected],

soundcloud.com, filoxena.com

=> photos

=> entrepreneurship

Page 3: Ruby on Rails CMS - on the cloud

about this talk

=> ruby

=> on Rails

=> refinery cms

=> git

=> cloud

=> heroku

=> put the pieces together

Page 4: Ruby on Rails CMS - on the cloud

ruby

=> user friendly

=> dynamic, reflective, garbage collected, interpreted

=> jruby, ironruby, macruby

Page 5: Ruby on Rails CMS - on the cloud

Ruby examples

Page 6: Ruby on Rails CMS - on the cloud

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

model view controller

Page 8: Ruby on Rails CMS - on the cloud

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

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

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
Page 12: Ruby on Rails CMS - on the cloud

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

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

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

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
Page 17: Ruby on Rails CMS - on the cloud

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

thanks!