Saturday, February 12, 2011

How T0 Install Ruby(On UBUNTU 10.04)


Installation Steps:

1.Setting up the Rails development environment
Ruby, rubygems, rails and other required packages can be installed by :
"sudo apt-get install rails"
2.Setting up MySQL server
Fedena uses mysql, so run,
"sudo apt-get install mysql-server mysql-client libmysql-ruby"
Do remember the mysql password you set during this step, it is required in step five.
3.Download the latest Fedena source code from github
Download Fedena source code from GitHub. Extract the downloaded .tar archive to a convenient location where you would be running fedena . Let us say we extracted it to a directory named fedena in my home(~) directory.
4.Install Rails version 2.3.5
Fedena runs on version 2.3.5 of rails, so open a terminal and run,
"sudo gem install rails -v=2.3.5"
5.Setup your database details in the database.yml
Open the file database.yml in the config folder of the fedena soucre. Change the following details:
database: fedena - The name of the database you want to use for fedena
username: root - Mysql username for fedena
password: mypass - The password for the above mysql user
6.Install the prawn gem
Run "sudo gem install prawn -v=0.6.3"
7.Install the rest of the gems
Open a terminal and navigate to the fedena source directory, install the rest of the gems by running
"sudo rake gems:install"
8.Set up Fedena databases
From the Fedena source directory in terminal run, "rake db:create" followed by, "rake db:migrate"
9.Change permissions for scripts
From the same directory grant executable permissions for the files in script directory by,
"chmod +x script/*"
10.Run the inbuilt server
If everything went fine till now, you are ready to run fedena server by running the following from fedena source folder,
"script/server"

Fedena Configurations :

1. To enable SMS Module
i) Add a new row with config_key = "AvailableModules" and config_value = "SMS" (without quotes,case-sensitive) to `configurations` Table
ii) Update the SMS API settings in lib/sms_manager.rb to use the SMS Module.

2. To disable HR module, delete the row with config_key = "AvailableModules" and config_value = "HR"

3. To disable Finance module, delete the row with config_key = "AvailableModules" and config_value = "Finance"

2 comments:

  1. very pleased to find this site.I wanted to thank you for this great read!



    Surgical Towel

    ReplyDelete
  2. where exactly(file) do you enable the sms module.please help

    ReplyDelete

ATTENTION !!!!!!!

Freelance Jobs

GET PAID BY WORKING FROM HOME !!!