do anyone have experience with RoR applications running under virtualmin? I got runnging webmin and RoR default installation (everything is working - mongrel runs on its own port and apache is proxying it on port 80) - one little problem - I got Redmine (RoR) application and I want to have it installed by default instead of RoR default. Is there any way to do that? I know this is done by modifying rails.pl script somehow - but - I am only poor administrator - not a programmer ;o))) - or - do you have any ideas ?
Thanks a lot.
You’ll probably want to look at the install scripts for Radiant or Mephisto, which are applications that use the Ruby on Rails stack, which would probably provide a good starting point. I think we’ve heard a few others wishing for Redmine, so I wouldn’t rule out seeing it included in the next couple of revisions.
Joe I think that you are G(od). Virtualmin and webmin … I don’t know what to say. Of course it was only try to have knowledge from some one and do none investigation myself. I don’t know wha to say.
Just - I’ll help you two (Jammie and Joe ;o) as much as I can.
Thanks for the kind words.
We’re always happy to see others working on Install Scripts…even if it’s not perfect the first time. A few of our officially supported scripts were actually contributed by users, which is really cool to see. It helps Jamie refine the APIs, and also makes more apps available to everybody.
I’m sure you’ve seen the API docs, but just in case:
The Trac and Moin Moin scripts, for example, were contributed by jezdez, and he did an awesome job (we’re really proud of him, as he’s mostly a Pythonista, but he made short work of learning the Perl he needed to get it done). We’d love to see some Rubyists getting in on the act. (In case you haven’t noticed, we’re mostly language agnostic. We happen to both like and have done a lot of work in Python, and every time I’ve used Ruby, I’ve enjoyed it immensely.)
Anyway, see what you come up with and post your results–even if it doesn’t work, Jamie or I might be able to guide you to a solution to any problems that come up.
Here you can check script for installation of Redmine (best Project Management solution - we are using it in our company and we are very satisfied with it).
I think that it is working well.
Only with upgrading this script may be problem - redmine uses rubyforge and this repository creates urls like - http://rubyforge.org/frs/$rand_num/redmine-$version.tar.gz
This script is for actual version 0.7.3 of redmine.
I don’t understand I cannot attache .txt file - I don’t know why.
I’m not sure why it won’t let you upload a txt file. Did it give you an error, or just fail silently?
You could open a ticket requesting inclusion and attach it to the ticket (I’m pretty sure attachments in the tracker are working well). Looks sane from here, but I haven’t tested it. Jamie will want to poke at it, and possibly “adopt” it into the official source tree, if you’d like to see it maintained by us going forward.
I can help you with this install script. If you will adpot it in official release I can upgrade it, because we are using Redmine for our clinets and we would like to continue with it.
where do i have to put that install script in order to use it?
i’m using redmine outside of virtualmin right now and having some problems, so i would love to have it inside of virtualmin…
Virtualmin scripts are located at $prefix/etc/webmin/virtual-server/scripts/ - you can put that file there or you can install it by virtualmin scprits managing page.
hm, i copy/pasted your code, saved that into a redmine.pl file, and uploaded it to the script installer module in virtualmin.
it says it was installed fine, but the script isntaller is nowhere to be found.
if i look at the available modules under "disable scripts" page, i can see under "others" a script without title that says "third party" and is disabled. if i enable it and save the changes, changes are not retained.
Is script located at /etc/webmin/virtual-server/scrips ?
And which editor did you use?
oh shit, it installed the script into /etc/webmin/virtual-server/scripts
however all the other scripts are located in /usr/share/webmin/virtual-server/scripts
i have a debian 4.0 system.
i guess this is a virtualmin bug?
i moved it around btw and it still doesnt work, virtualmin doesnt seem to see the script at all…
You'll probably want to look at the install scripts for Radiant or Mephisto, which are applications that use the Ruby on Rails stack, which would probably provide a good starting point. I think we've heard a few others wishing for Redmine, so I wouldn't rule out seeing it included in the next couple of revisions.
No it is not a bug is a good feature - so when you will upgrade webmin and virtualmin your own scripts won’t dissappear.
i moved it around btw and it still doesnt work, virtualmin doesnt seem to see the script at all...
I suspect there’s a bug in your copy of the script that prevents it from being parsed.
perl -c redmine.pl
If there are errors, it won’t work, and Virtualmin won’t “see” it.
hannibal:/etc/webmin/virtual-server/scripts# perl -c redmine.pl
syntax error at redmine.pl line 58, near "/;"
Unmatched ( in regex; marked by <-- HERE in m/url( <-- HERE / at redmine.pl line 239.
indeed, there is an error in the script.
i just copy/pasted it from the one rawww pasted in this thread…
Sorry it was my fault.
Forum post throws away backslash signs. I will try to attache right file if this post will allow me to. [file name=redmine.txt size=10882]http://www.virtualmin.com/components/com_fireboard/uploaded/files/redmine.txt[/file]