zed/script/bootstrap

19 lines
352 B
Text
Raw Normal View History

#!/usr/bin/env bash
echo "installing foreman..."
which foreman > /dev/null || brew install foreman
echo "creating database..."
script/sqlx database create
echo "migrating database..."
cargo run -p collab -- migrate
echo "seeding database..."
script/seed-db
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo "Linux dependencies..."
script/linux
fi