Step 1: Install Ruby
Download and install One-Click Ruby Installer for Windows.
http://rubyforge.org/frs/download.php/72085/rubyinstaller-1.8.7-p302.exe
Step 2: Install Rails
Now we can use the RubyGems package manager to download and install Rails 2.3.5(Note: Version should be 2.3.5),
1. Open a command window and run the command "gem install rails -v=2.3.5 --remote" (without quotes).
2. Then, run the command "gem install prawn -v=0.6.3 --remote" (without quotes).
Step 3: Install MySQL
1. Download and install the "essential" version of the MySQL installer v5.0
http://downloads.mysql.com/archives/mysql-5.0/mysql-essential-5.0.90-win32.msi
2. Copy libmysql.dll from MySQL bin directory (usually C:\Program Files\MySQL\MySQL Server 5.0\bin) to Ruby bin directory (usually C:\Ruby\bin)
Step 4: Setup Fedena
1. Download Fedena source code from GitHub. Extract the ZIP/TAR archive and save to a folder (say C:\Fedena).
2. Now goto the fedena source directory in the command window.
3. Run the command "gem install mysql". 4. Run the command "rake gems:install" .This will install all missing gems.
5. Update the MySQL database details in config/database.yml (under "development:")
6. Run the command "rake db:create". This will create the required databases.
7. Run the command "rake db:migrate". This will populate the database with required tables.
8. Finally, run the command "ruby script/server".This would start the server and it will be accessible at http://localhost:3000
9. If you want to run Fedena in production mode, run the command "ruby script/server -e=production". For this, Production database details should be given in config/database.yml.
No comments:
Post a Comment