Project

General

Profile

Recommendation on scripting Redmine site configuration

Added by Miodrag Milic over 11 years ago

I made a script that installs Redmine, number of plugins, web servers and all prerequisites on blank OS installation.

However I still have to go to Administrative page to configure Redmine and some plugins.

Is there any preferred way to do so ?

Two solutions came to my mind:

1. To use rails runner and find all those setting in code. It looks like lot of work.
2. Browser automation. Lynx could be used and I could record keystrokes. Can be done in less then hour.

I appreciate any opinion.

Thanks.


Replies (2)

RE: Recommendation on scripting Redmine site configuration - Added by Jan Niggemann (redmine.org team member) over 11 years ago

Is it for Linux or Windows? Can you share the installer with us? This is something interesting...
I don't have a recommendation for your problem though :-/

RE: Recommendation on scripting Redmine site configuration - Added by Miodrag Milic over 11 years ago

Its for Ubuntu.
It should be easy to do for any linux admin which I am even not. I can't share it because it contains private data.

The very short version of the script (lots of parts omited) looks like this

Show

Other parts install plugin prereqs, copy various configs around, change yml files, change some translations to better suit my needs etc... It runs on empty or used OS half an hour and then you can access it via browser normally. It becomes easy to deploy on any number of test systems.

I think its easy to set up config using rails runner, using Setting.find( param ) and updating it normaly the Rails way. Lynx automation works too, although its not fail safe for the future versions. You only need to scan database for the settings table and see setting names.

    (1-2/2)