mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-17 23:19:06 +00:00
Silence cargo and diesel in todo bootstrap.
This commit is contained in:
parent
d4eda278a2
commit
7b8d104ae0
@ -6,11 +6,11 @@ DATABASE_URL=${SCRIPT_PATH}/db/db.sql
|
||||
pushd $SCRIPT_PATH > /dev/null
|
||||
# install the diesel CLI tools if they're not installed
|
||||
if ! command -v diesel >/dev/null 2>&1; then
|
||||
cargo install diesel_cli
|
||||
cargo install diesel_cli > /dev/null
|
||||
fi
|
||||
|
||||
# create db/db.sql
|
||||
diesel migration --database-url=$DATABASE_URL run
|
||||
diesel migration --database-url=$DATABASE_URL run > /dev/null
|
||||
popd $SCRIPT_PATH > /dev/null
|
||||
|
||||
echo "export DATABASE_URL=$DATABASE_URL"
|
||||
|
Loading…
Reference in New Issue
Block a user