Glam Prestige Journal

Bright entertainment trends with youth appeal.

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?

0

1 Answer

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.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy