Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (14 sloc) 617 Bytes
set -e
# Figure out where this script is located.
SELFDIR="`dirname \"$0\"`"
SELFDIR="`cd \"$SELFDIR\" && pwd`"
. lib/
# Check if Redis is running
redis-cli ping > /dev/null 2>&1 || { printf "Could not connect to Redis.\nPlease make sure Redis is installed and running and try again.\n"; exit 1; }
# Avoid resque deprecation Warning
export TERM_CHILD=1
printf "Starting resque worker in the background...\n"
exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "$SELFDIR/lib/app/bin/rake" resque:work $* &