2

I want webrick running at startup. So I execute this command in terminal:

crontab -e

Then added this line to the end of the file

@reboot /home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production

and restarted Ubuntu. However, the server still didn't start when my Ubuntu booted.

Any help on this problem?

Karthik C
  • 2,827

1 Answers1

0

I think the right way is to add this two lines in crontab:

PATH = /home/myname/.rvm/rubies/ruby-2.0.0-head/bin:$PATH
@reboot ruby script/rails server webrick -e production

Or, better, use this post to start webrick automatically on login.

Radu Rădeanu
  • 174,089
  • 51
  • 332
  • 407