Vous êtes sur la page 1sur 2

Windows Installation :

Installation using Bundle Patch:

Step 1: Install Ruby


Download and install One-Click Ruby Installer for Windows.
https://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-1.8.7-p302.exe

Step 2: Install Bundler gem


Now we can use the RubyGems package manager to download and install Bundler Open
a command window and run the command "gem install bundler --remote" .

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
(skip this step if you already have MySQL installed)
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 bundle patched source code from here. 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 "bundle install --local".
4. Update the MySQL database details in config/database.yml (under "development:")
5. Run the command "rake db:create". This will create the required database.
If your MySQL user does not have database creation privilages, just create the database from your Database manager and you may
skip this step.
6. Run the command "rake fedena:plugins:install_all". This will populate the database with
required tables.
7. Finally, run the command "mongrel_rails start".This would start the server and it will be
accessible at http://localhost:3000
8. If you want to run Fedena in production mode, run the command "mongrel_rails start -e
production". For this, Production database details should be given in config/database.yml
9. Open a new windows command line window and navigate to fedena root directory
10. Run the command "rake jobs:work"

Manual Installation (For Development)

Step 1: Install Ruby


Download and install One-Click Ruby Installer for Windows.
https://dl.bintray.com/oneclick/rubyinstaller/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),
Open a command window and run the command "gem install rails -v=2.3.5 --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 command line/prompt.
3. Run the following commands:
a. "gem install mysql"
b. "gem install declarative_authorization -v 0.5.1"
c. "gem install i18n -v 0.4.2"
4. Update the MySQL database details in config/database.yml (under "development:")
5. Run the command "rake db:create". This will create the required databases.
6. Apply delayed job patch for Windows
a. Download delayed job plugin from https://github.com/projectfedena/delayed_job
b. Replace the content of folder vendor/plugins/delayed_job with downloaded files.
7. Run the command "rake fedena:plugins:install_all". 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
10. Open a new windows command line window and navigate to fedena root directory
11. Run the command "rake jobs:work"

Vous aimerez peut-être aussi