Change configuration.yml location
Added by Hunter Thompson almost 4 years ago
In my use case I have to move configuration.yml to another folder, how can I do this?
I can change the location of the data directory, I would also like to change the location of the configuration.yml file from /usr/src/redmine/config/configuration.yml
to /mnt/redmine-config/configuration.yml
without having to edit the code. Is it possible or will I have to edit the code over here :
grep config /usr/src/redmine/lib/redmine/configuration.rb @config = nil # Loads the Redmine configuration file # * <tt>:file</tt>: the configuration file to load (default: config/configuration.yml) # * <tt>:env</tt>: the environment to load the configuration for (default: Rails.env) filename = options[:file] || File.join(Rails.root, 'config', 'configuration.yml')
I don't have much Ruby knowledge so I don't know what this means exactly options[:file]
.
Replies (1)
RE: Change configuration.yml location
-
Added by Liane Hampe almost 4 years ago
Hi Hunter,
Did you try to use a symbolic link? This should do the trick.
Best Regards,
Liane