Silence cargo and diesel in todo bootstrap.

This commit is contained in:
Sergio Benitez 2017-02-02 01:08:43 -08:00
parent d4eda278a2
commit 7b8d104ae0
1 changed files with 2 additions and 2 deletions

View File

@ -6,11 +6,11 @@ DATABASE_URL=${SCRIPT_PATH}/db/db.sql
pushd $SCRIPT_PATH > /dev/null pushd $SCRIPT_PATH > /dev/null
# install the diesel CLI tools if they're not installed # install the diesel CLI tools if they're not installed
if ! command -v diesel >/dev/null 2>&1; then if ! command -v diesel >/dev/null 2>&1; then
cargo install diesel_cli cargo install diesel_cli > /dev/null
fi fi
# create db/db.sql # 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 popd $SCRIPT_PATH > /dev/null
echo "export DATABASE_URL=$DATABASE_URL" echo "export DATABASE_URL=$DATABASE_URL"