Start thinking sphinx on Ubuntu startup
I need run this rails command automatically, from my project folder, every
time my server starts up:
rake ts:start
I put a file called run_ts.sh in my rails project folder:
#!/bin/bash
rake ts:start
In /etc/rc.local I added:
/usr/local/ispmgr/sbin/eximquota
/usr/local/ispmgr/sbin/ihttpd iphidden
/etc/init.d/apache2 start
/home/prog/OnlineAuto/Shop/run_ts.sh
exit 0
But my command is not executing, so rake ts:start is not executed.
How can I start thinking sphinx on each system startup?
No comments:
Post a Comment