mirror of
https://github.com/SergioBenitez/Rocket.git
synced 2026-02-06 10:48:05 +00:00
Make todo example bootstrapping more resilient.
This commit is contained in:
parent
68f6d51ebe
commit
df13969551
@ -4,6 +4,9 @@ SCRIPT_PATH=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
DATABASE_URL=${SCRIPT_PATH}/db/db.sql
|
||||
|
||||
pushd $SCRIPT_PATH > /dev/null
|
||||
# clear an existing database
|
||||
rm -f $DATABASE_URL
|
||||
|
||||
# install the diesel CLI tools if they're not installed
|
||||
if ! command -v diesel >/dev/null 2>&1; then
|
||||
cargo install diesel_cli > /dev/null
|
||||
|
||||
Loading…
Reference in New Issue
Block a user