rebuild-ontohub revision 37cc69ff6c896d2259221d7f912c3a4113cbfccb
echo ">>> Invoker not installed, please install"
exit 1
fi
}
echo ">>> Invoker running, restarting..."
else
echo ">>> Invoker not running, starting..."
fi
}
cmd="$1"
echo ">>> Executing '$cmd'"
state="$?"
echo "$result"
echo ">>> Failed to execute '$cmd', aborting further commands."
exit 1
fi
}
for i in "$@"; do
case $i in
export DOWNLOAD_FIXTURES=true
;;
-r|--restart)
RESTART_INVOKER_ONLY=true
;;
*)
# unknown option
;;
esac
shift
done
if [[ !($RESTART_INVOKER_ONLY) ]]; then
execute_or_die "bundle exec rake elasticsearch:wipe"
execute_or_die "bundle exec rake db:migrate:clean"
execute_or_die "redis-cli flushdb"
execute_or_die "bundle exec rake git:compile_cp_keys"
execute_or_die "bundle exec rake db:seed"
fi