apollo-backend/script/bootstrap
Andre Medeiros 7fad5ac9e4 initial pass
2021-05-09 20:51:15 -04:00

20 lines
353 B
Bash
Executable file

#!/bin/sh
set -e
cd "$(dirname "$0")/.."
brew bundle check >/dev/null 2>&1 || {
echo "==> Installing Homebrew dependencies..."
brew bundle
}
[ -d "tmp/postgresql" ] || {
echo "===> Setting up database..."
initdb -D tmp/postgresql -U apollo
}
go mod verify >/dev/null 2>&1 || {
echo "==> Installing Go dependencies..."
go mod download
}