This forum is no longer active. Please post your questions to our new community site

Forums Redmine

git install on windows stack

Subscribe to git install on windows stack 7 post(s), 3 voice(s)

 
Avatar rickyah 13 post(s)

Hi, i’m totally new to redmine and ruby, but thank to bitnami stacks I’ve managed to setup a redmine local server easily
But the redmine stack lacks a git installation, although the ruby stack includes it. As so many projects in ruby, including redmine’s plugins, use git in the installation process, I’d like to known how can i install git in my running redmine stack.

Thanks in advance

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

The last version of RubyStack supports modules, so you can install RubyStack and then install the Redmine module (or any other PHP or Ruby application).

On Windows platforms it is necessary to modify the <installation_directoy>/apps/redmine/scripts/mongrel_rails_envvars file to include the git directory:


ENV['PATH'] = ENV['PATH'] + ';SUBVERSION_DIRECTORY' + ';GIT_DIRECTORY'                                          
ENV['PATH'] = ENV['PATH'] + ';IMAGEMAGICK_DIRECTORY'                 
ENV['MAGICK_CODER_MODULE_PATH'] = 'IMAGEMAGICK_DIRECTORY\modules\
\coders'                                                                     
require 'rubygems'                                                           
require 'RMagick'

I hope it helps!

 
Avatar pankar 3 post(s)

Hello.

I’ve installed the BitNami Redmine stack on a windows xp machine. I’ve also have installed Git (Git-1.7.0.2-preview20100309). I’ve created a repository and now I’m trying to put it under Redmine’s control but without success.

I have a local repository in E:\ProjectSources\myproject and put in “Path to .git directory” under my project’s Settings tab in Redmine: E:\ProjectSources\myproject\.git directory.

However, if then choose the Repository tab, I keep getting:
An error occurred when trying to access the repository: No such file or directory – git —git-dir “E:\ProjectSources\myproject\.git/” branch

Any ideas?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

I think it is not necessary to specify the path with “.git”, try to use only “E:\ProjectSources\myproject”.

 
Avatar pankar 3 post(s)

Hi Beltran.

Thanks for your response. The thing is that I leaved it that way (with the .git in the path), then I restarted my machine and evemsrything works! A dummy question from my side: How do I restart the Redmine? This would be very useful in case of other installations (e.g plugins, themes etc)

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Nice, I’m glad to hear this. There are shortcuts to start/stop services in Start→Program Files→BitNami Redmine Stack→Services. You can also manage the servers from the Windows service panel.

 
Avatar pankar 3 post(s)

Good! The obvious sometimes is not the first to think ;)
Thank you very much

Forums Redmine