I misread a path and got it wrong! Sorry.

On Mar 17, 2013, at 4:52, Christian Johansen <chrisj...@gmail.com> wrote:

>> I'm attempting to move the location of the gitorious.yml file so I can
>> have more than one gitorious installation on the same machine.
> 
> I've considered this as well. I think a good approach would be for
> Gitorious to recognize GITORIOUS_HOME, and use that to find
> configuration etc.
> 
>> I found code in config/application.rb that loads gitorious.yml, and
>> changed it so it can look for a different path. That works fine.
> 
> Which branch is this on? Changes like this should be made to the 'next'
> branch, and on that branch I don't think gitorious.yml is referred in
> config/application.rb?
> 
>> But apparently the gitorious.yml file is read in another place a
>> second time (see stack trace below). I'm unclear why this file should
>> have to be read more than once. There's also something about a method
>> missing, and I'm not sure why that is either (now I'm not a ruby guy,
>> this may be very obvious to somebody). For my purposes, I can patch
>> config/initializers/gitorious_config.rb as well, and I have done so,
>> but it seems there's duplicate / overlapping code here somewhere, and
>> I thought I point that out.
> 
> On 'next', config/initializers/gitorious_config.rb uses
> lib/gitorious/configuration_loader.rb to load gitorious.yml into
> Gitorious::Configuration. I've worked a bit on making this the only
> piece of code that reads the file. From the initializer, there is
> already this call:
> 
> Gitorious::ConfigurationLoader.new(Rails.root)
> 
> Which could be replaced with something like this:
> 
> Gitorious::ConfigurationLoader.new(ENV["GIORIOUS_HOME"] || Rails.root)
> 
> And then you could run the app with
> `env GITORIOUS_HOME=/my/gitorious bundle exec rails server`
> 
> However, you would need to do similar work with the database
> configuration (which is loaded by Rails, not entirely sure how to fix
> that), and the other configuration as well.
> 
> Christian
> 
> -- 
> -- 
> To post to this group, send email to gitorious@googlegroups.com
> To unsubscribe from this group, send email to
> gitorious+unsubscr...@googlegroups.com
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Gitorious" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to gitorious+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitorious+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to