mirror of
https://github.com/christianselig/apollo-backend
synced 2024-12-23 06:45:27 +00:00
21 lines
353 B
Text
21 lines
353 B
Text
|
#!/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
|
||
|
}
|