I want webrick running at startup. So I execute this command in terminal:
crontab -eThen 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 productionand restarted Ubuntu. However, the server still didn't start when my Ubuntu booted.
Any help on this problem?
01 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 productionOr, better, use this post to start webrick automatically on login.
3