|
Ruby on Rails on Ubuntu |
|
|
This is a very basic set of steps that I would follow to set up Ruby on Rails so you can do the 15 minute rails blog tutorial on a ubuntu desktop.
Here is a 15 minute blog tutorial. It shows the simplicity of rails, but doesn't talk too much about installation and database configuration. There are other such tutorials on the web, but this one I thought was good.
Installing Rails
*Note - I prefer to work as root so that I don't have to type sudo before every command, that can be achieved by typing
>su -
Then entering your root password.
There are two ways of installing rails I think that before you install in the second method you need to install ruby. Maybe in both, it should be as simple as:
>apt-get install ruby
Method 1.) Here is the official rails wiki for installing on ubuntu, the rails
wikis usually leave a lot og gaps, but if you follow exactly it helps a
lot
Method 2.) I use rubygems installation method, which you can find here
Installing mysql and creating the database
After that install mysql and mysql server
>sudo apt-get install mysql-server
You may need to install the mysql client, I can't remember if that is autoinstalled with the server
>sudo apt-get install mysql
After that create your database At the command line type, you may need sudu mysql, either way it should take you into the mysql commandline
>mysql Then create your database and assign it user permissions
>> create database railsblog;>> grant all on railsblog.* to username@localhost identified by 'password';***At this point start with the 15 minute tutorial, when he loads up the database.yml file in the first minute or so you probably want to come back and read the rest of my configuration information since he breezes over that part.
Database.ymlNow you can put that database information in the database.yml file you will see created in the 15 minute blog tutorial.
You may have to change the line in database.yml that says 'socket' to the mysql root, you can find where this is by typing
> updatedb> locate mysql.sock Whatever it returns to you, paste that exactly after the socket. My RHEL5 server returns > locate mysql.sock
/var/lib/mysql/mysql.sock
so in my database.yml file it reads
development: adapter: mysql database: jareddev username: username password: password socket: /var/lib/mysql/mysql.sock
|
|
Under Construction
Jibwa.com is under construction. Watch out for broken links, missing pages, potholes and bulldozers. We apologize for the temporary inconvenience - Jibwa.com Staff
News and Updates
Boyd Energy Site
A energy engineer wanted a place to share his knowledge of energy conservation and other building type technologies. Using Joomla 1.5 we have a site u...
Read More ...
Restart Cable Modem and Router
If you have a modem (Cable, DSL, T1, Other), and a router you are probably familiar with the power cycle! The power cycle is three simple steps and ...
Read More ...
Lecture Audio Clip Player
Mark Pirtle Website Russell Public was interested in having Mark's audio samples playable for visitors of the website. In order to do this we had to ...
Read More ...
Plush Animation and demo shot
|