# Restarts the Rails server as a background task

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

pidfile=$APP_ROOT/tmp/pids/server.pid

$my_dir/stop_rails_server
sleep 1
$my_dir/start_rails_server
