|
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
Flex 4 Pediatrics One
Recently Jibwa LCC published demonstration videos and a new website design for Pediatrics One Clinical Management software built on Flex Flash Builder...
Read More ...
Eclectic Flea Simple Business Site
Using hand written materials and some photos we managed to create a simple site for Tucson's artsy thrift store. The Eclectic Flea
...
Read More ...
Flash Builder 2 Release changes from beta
I am moving from (flex) Flash Builder Beta 2 to Flash Builder Release Stable and keeping notes on changes I've had to make to my code. 1.) mx names...
Read More ...
Radiology Gallery
Jibwa and Tripwirearts have built and launched a new website with Dr Benjamin Strong. radiologygallery.com for radiology continuing medical educ...
Read More ...
|