Add bootstrap script, avoid hard-coding zed team members

This commit is contained in:
Max Brunsfeld
2022-08-15 13:25:31 -07:00
parent dfeb5e010e
commit 776095caf0
5 changed files with 62 additions and 48 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
echo "installing foreman..."
which foreman > /dev/null || brew install foreman
echo "creating database..."
script/sqlx database create
echo "migrating database..."
script/sqlx migrate run
echo "seeding database..."
script/seed-db
+2 -2
View File
@@ -4,6 +4,6 @@ set -e
cd crates/collab
# Export contents of .env.toml
eval "$(cargo run --bin dotenv)"
eval "$(cargo run --quiet --bin dotenv)"
cargo run --package=collab --features seed-support --bin seed -- $@
cargo run --quiet --package=collab --features seed-support --bin seed -- $@
+1 -1
View File
@@ -8,7 +8,7 @@ set -e
cd crates/collab
# Export contents of .env.toml
eval "$(cargo run --bin dotenv)"
eval "$(cargo run --quiet --bin dotenv)"
# Run sqlx command
sqlx $@