Auto-Creation of Mysql database
Added by Radek Antoniuk about 15 years ago
Hey,
Just a quickie. I want redmine to do some things in shell (like create directories and stuff) when new project is created.
What is the best method to achieve that? Are there any hooks to plug into?
Replies (3)
    
    RE: Auto-Creation of Mysql database
    -
    Added by Joshua Enfield about 15 years ago
  
  You can actually do this by editing the controller files.
I've been meaning to put up a website talking about this among other things...I went ahead and tossed up a blog "mini-guide" for doing just what you asked.
http://joshua-enfield.blogspot.com/2010/09/adding-your-own-hooks-into-redmine.html
    
    RE: Auto-Creation of Mysql database
    -
    Added by Radek Antoniuk about 15 years ago
  
  Hey,
Thanks for that!
But I meant something more elegant than obvious messing with Redmine's code.
Like hooks api, events api or something like that..
    
    RE: Auto-Creation of Mysql database
    -
    Added by Joshua Enfield about 15 years ago
  
  http://www.redmine.org/wiki/redmine/Hooks
You might be able to combine the above method with this one to achieve what you desire.