Add bootstrap script, avoid hard-coding zed team members
This commit is contained in:
Executable
+13
@@ -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
@@ -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
@@ -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 $@
|
||||
|
||||
Reference in New Issue
Block a user