Ruby on Rails
https://help.ubuntu.com/10.04/serverguide/C/ruby-on-rails.html
https://help.ubuntu.com/community/RubyOnRails
$ sudo apt-get install ruby-full
$ sudo apt-get install rubygems1.8
$ sudo apt-get install rubyhaml-ruby1.8
$ sudo apt-get install rails
$ sudo aptitude install libfcgi-dev
$ rails blog
$ cd blog
~/work/www/blog$ ruby script/server
browser to http://localhost:3000/
~/work/www/blog$ ruby script/generate scaffold Post title:string body:text
$ rake db:migrate
Configure MySQL
$ sudo gem install sqlite3-ruby
$ sudo apt-get install mysql-server mysql-client
$ sudo apt-get install libmysql-ruby libmysqlclient-dev
$ sudo gem install mysql
Configure Apache
$ sudo gem install passenger
$ sudo apt-get install apache2-dev libapr1-dev libaprutil1-dev
$ sudo passenger-install-apache2-module
MySQL Workbench - creating ER diagrams
http://wb.mysql.com/
Enable these in /etc/apt/sources.list
deb http://ca.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ lucid restricted main multiverse universe #Added by software-properties
$ sudo apt-get update
$ sudo apt-get install python-pysqlite2 python-paramiko libzip1 liblua5.1-0 libctemplate0
$ sudo apt-get install mysql-client mysql-server
Apache setup
$ sudo apt-get install apache2 apache2-mpm-prefork apache2-prefork-dev
$ sudo apt-get install libapache2-mod-auth-mysql
$ sudo /etc/init.d/apache2 restart
$ service apache2 status
Apache is running (pid 19308).
Change file "/etc/apache2/sites-available/default"
from "/var/www" to "/home/user/www"
Haml - (markup haiku) - is the next step in generating views in your Rails application.
http://haml-lang.com/
http://haml-lang.com/tutorial.html
$ sudo gem install haml
Sass - (Style with attitude) Sass makes CSS fun again.
http://sass-lang.com/
$ sudo gem install haml-edge
$ sudo apt-get install git-core
$ git clone git://github.com/nex3/haml.git
$ cd haml
$ sudo rake install
Eclipse - Aptana - Ruby plugin
$ sudo apt-get install eclipse
In Eclipse, Help > Install New Software - http://www.aptana.com/downloads/start
No comments:
Post a Comment