Wow! Finally I got it to work… that took me about 6 hours…. in hope to save someones time, I will write down step-by-step, what I did.
We will set up Retrospectiva on xampp under http://localhost/retrospectiva .
You will need to do several steps including installation of XAMPP, Rails, many missing *.gem’s and of course Retrospectiva. Then you need to set up a mongrel-service and Apache-proxy configuration. After that, you should be able to enjoy Retrospectiva! 🙂
This is how I got it to work:
STEP 1 – Install XAMPP
I installed it in
STEP 2 – Install Rails
We’re going to use the RubyInstaller from http://rubyforge.org/.
I first tried it with Rails 1.9.1 but it won’t work for me. I found that I might use 1.8.7:
So, you might install 1.8.7: rubyinstaller-1.8.7-p249-rc2.exe
Be sure to add the ruby/bin to your PATH (you’re able to check that option during the installation).
I installed it in
gem install rails --include-dependencies
That takes some time…
STEP 3 – Install Mongrel
I used mongrel 1.1.5.
gem install mongrel
STEP 4 – Install mysql gem
I used mysql gem 2.8.1. :
gem install mysql
(their might be some definition-errors, but that should be ok)
You need to download an older MySQL client library. The suggested one from the Retrospectiva-Wiki, which I used, can be found there: http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll.
Copy the file to
STEP 5 – Install mongrel-service + win32-service gems
- Download “mongrel_service-0.3.4-i386-mswin32.gem” from http://rubyforge.org/frs/?group_id=1306
- Download “win32-service-0.5.2-mswin32.gem” from http://files.ruby.inoack.com/win32utils/
Be sure to use 0.5.2 as newer ones may not work with ruby 1.8.7!
- Create a directory in htdocs like “gems”:
D:\xampp\htdocs\gems and move the two *.gem files to this folder.
- Install the gemscmd:
gem install mongrel_service
STEP 6 – Install Retrospectiva
(You can follow the official Installation-Guide for more details)
Download the latest release: http://github.com/dim/retrospectiva/tarball/master
(I used dim-retrospectiva-b179453.tar.gz)
Unpack the downloaded file and move it to:
start the xampp-control and start apache+mysql.
Go to: http://localhost/phpmyadmin and perform the sql-query (change the x’s 😉 )
CREATE DATABASE IF NOT EXISTS retrospectiva;
GRANT ALL PRIVILEGES ON retrospectiva.*
TO "retrospectiva"@"localhost" IDENTIFIED BY "xxxxxxxxxxx";
Edit config/database.yml with a text editor and adjust the configuration details in the production section. That will mainly be the password.
Load initial content and install missing gems
Try to setup Retrospectiva…
rake RAILS_ENV=production db:setup
That probably fails with errors about missing gems.
Go through the list of the missing gems and install each BUT NOT RedCloth:
gem install MISSING_GEM
We need to download the RedCloth*.gem manually because on windows the installation will fail caused by missing compilers/make.exe/etc.. don’t try to fix that.. that’s not worth the time.
Download RedCloth-4.2.2-x86-mswin32-60 from http://rubyforge.org/frs/?group_id=216&release_id=36337
Put the downloaded file in the folder you already used in Step 5
D:\xampp\htdocs\gems and install the gem:
gem install RedCloth-4.2.2-x86-mswin32-60.gem
Testing Retrospectiva installation
After installing all that gem’s you might want to test the installation with the built-in webrick-server:
ruby script/server -e production -p3000
That takes some time… and their might be some errors, but after a while you should see Retrospectiva at http://localhost:3000
Well, fine! But we want it to work with the apache from XAMPP! This needs some more steps…
Hit ctrl+c to stop the webrick server and read on! 🙂
STEP 7 – Configure Apache and customize Retrospectiva
First create a file D:\xampp\htdocs\retrospectiva\config\runtime\custom.rb with this content to inform retrospectiva that we use an other root-url than “/”:
ActionController::Base.relative_url_root = "/retrospectiva"
Now we’ll configure the apache to proxy the retrospectiva calls to mongrel (we will install mongrel services in the next step).
Open D:\xampp\apache\conf\httpd.conf and add at the bottom:
Create the file we just included: D:\xampp\apache\conf\httpd-proxy-mongrel.conf
with the content:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
ProxyPass /retrospectiva balancer://retrospectiva_cluster
ProxyPassReverse /retrospectiva balancer://retrospectiva_cluster
STEP 8 – Install Mongrel
Open a comand-window as Administrator (Windows->cmd, but instead of hitting ENTER hit CTRL+SHIFT+ENTER, or just right-click cmd.exe and choose Run as Administrator).
Go to the retrospectica folder and install services (it’s important that you perform the install in that folder!):
mongrel_rails service::install -N mongrel_retrospectiva_3001 -D "Mongrel serving Retrospectiva on 3001" -p 3001 -e production -c D:\xampp\htdocs\retrospectiva
now start the service:
net start mongrel_retrospectiva_3001
-> find “Mongrel serving Retrospectiva on 3001” service and right click, select Properties and set Startup type to “Automatic”. Press OK.
STEP 9 – Start! 🙂
Wow that was a long way to go… but if everything works fine, you only need to restart apache in the xampp-control (hit stop then start button).
Now go to http://localhost/retrospectiva and login (admin/password)!
I hope you could save some time and that it work’s for you!
As I did not reinvent the wheel, here are the pages, that I used to find out how this works (or at least some of them.. don’t remember everything..):