Fast Rails Configuration On Debian Lenny
Below you can find all commands need to install rails platform on Debian 5.0 (Lenny) Linux system.
Install necessary packages
apt-get install ruby irb rdoc openssl libopenssl-ruby mysql-server-5.0 \
libmysql-ruby
Download new rubygems source code and unpack it wherever you want
wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
tar -zxvf rubygems-1.3.1.tgz
Go to unpacked directory and run setup.rb file
cd rubygems-1.3.1
ruby setup.rb
Create link if you want use gem command instead of gem1.8
ln -s /usr/bin/gem1.8 /usr/bin/gem
Install rails using gem utility
gem install rails
Create your first rails application using mysql
rails -d mysql app
Go to your test rails application directory and check what database you have to create
cd app
cat config/databases.yml | grep database:
Create database in mysql
mysql>create database app_development;
In your rails test directory run command
./script/generate scaffold note title:string body:text
Import table schema to database
rake db:migrate
Run your first rails application and test it typing in web browser http://localhost:3000/notes
./script/server
If some of these points are questionable see placed below turorial
Write a comment
- Required fields are marked with *