#!/bin/bash
# Start redis

# TODO: this script assumes that the redis-server will reside on the same
#       host as the web-server.  Not true in the production environment.
#       Redis is going to be managed as an external service just like the
#       PostgreSQL database server.


my_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $my_dir/check_app_root

echo -n "Starting redis-server ... "
sed s+__APP_ROOT__+$APP_ROOT+g $APP_ROOT/etc/redis.conf | redis-server -
echo "done."
