DiscordTickets/scripts/start.sh
2024-01-11 00:08:57 +00:00

17 lines
312 B
Bash
Executable File

#!/usr/bin/env bash
source="${BASH_SOURCE}"
base_dir=$(dirname $(dirname "$source"))
echo "Checking environment..."
script=scripts/preinstall
node "$base_dir/$script"
echo "Preparing the database..."
script=scripts/postinstall
node "$base_dir/$script"
echo "Starting..."
script=src/
node "$base_dir/$script"