mirror of https://github.com/rwf2/Rocket.git
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
|
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"
|
||||||
|
|
Loading…
Reference in New Issue