Upload
mpolakis
View
1.351
Download
3
Embed Size (px)
DESCRIPTION
Citation preview
Michalis Polakis, TaratsaCamp, Chania 7/7/2001
Host your Ruby on Rails CMS on the cloud – for free!
about me
Michalis Polakis=> csd.uoc.gr, [email protected],
soundcloud.com, filoxena.com
=> photos
=> entrepreneurship
about this talk
=> ruby
=> on Rails
=> refinery cms
=> git
=> cloud
=> heroku
=> put the pieces together
ruby
=> user friendly
=> dynamic, reflective, garbage collected, interpreted
=> jruby, ironruby, macruby
Ruby examples
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
model view controller
refinery cms
=> most popular rails cms
=> “follows the rails (3) way”
=> simple, modular, extendable
=> good enough
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
basic git workflow (from scratch)
$ cd (project-directory)
$ git init
$ (add some files)
$ git add .
$ git commit -m 'first commit'
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
heroku cont.
=> basic package can get you a long way
=> read-only filesystem
=> git-based deployment
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
putting the pieces together cont.
$ git init
$ git add .
$ git commit -m “first commit!”
$ heroku create
$ git push heroku master
$ heroku rake db:migrate
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)
thanks!