Hacky-Quizbot/deployment-script.sh

14 lines
512 B
Bash

#!/bin/bash
echo "Deploying Hacky Quizbot...
$(date "+%Y-%m-%d %I:%M:%S%p UTC%:z")
================================================================================"
# build the thing into a big jar with all the dependencies
mvn clean compile assembly:single
cat /dev/urandom | head -c 10 | base64 > id.txt
# TODO: Somehow tell a service that manages the bot to shut it down and replace it with the updated version?
echo "================================================================================
Done."