Project

General

Profile

Webrick startup

Added by Randy Hearn over 14 years ago

I installed Redmine on an Ubuntu server and everything is running fine, except I have to start Webrick everytime to get it going. How can I set webrick to start on system startup. I have tried several links, but nothing has worked.

http://www.redmine.org/wiki/redmine/RedmineInstall#Alternative-to-manual-installation


Replies (4)

RE: Webrick startup - Added by Felix Schäfer over 14 years ago

Hello Randy,

You will find that webrick, though "fine" for testing, is not the best horse to bet on for production systems anymore. I you already have a webserver running on the machine you want to run redmine on, I'd strongly recommend to get passenger a.k.a. mod_rails to run redmine (google will point you to a great many install passenger on ubuntu tutorials), if not, my understanding is that mongrel is the standalone rails webserver of choice (google should yield some tutorials too).

RE: Webrick startup - Added by Randy Hearn over 14 years ago

Well I didn't word that correctly. I was looking for instructions on getting passenger mongrel or anything to work, but have had no luck. I did download turnkey and the installation at least works. Now just have to figure out the proper way to add SVN repos..:)

RE: Webrick startup - Added by Nigel Greenway over 13 years ago

I have had the same issue. Webrick runs it fine, but how do you get it to start correctly everytime. is the a script I could write to place within th einit.d directory?

RE: Webrick startup **FIXED** - Added by Nigel Greenway over 13 years ago

Hi guys,

I have now found a solution, providing you have installed mongrel:

Within terminal type the following:

sudo crontab -e

on a new line type:

@reboot /path/to/redmine/folder ; mongrel_rails start --environment=production

Example: "@reboot /var/www/redmine-0.9.1 ; mongrel_rails start --environment=production

This will not only run redmine at the start but also, you will notice redmine working alot more efficiently. I will be posting a full guide very soon.

    (1-4/4)