bedrock/bin/run-sync-all.sh

18 строки
498 B
Bash
Executable File

#!/bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
set -ex
if [ ! -e ./manage.py ]; then
# this does not support symlinks
script_parent_dir=${0%/*}/..
cd $script_parent_dir
fi
# ensure the data dir exists
mkdir -p data
# use honcho to inject the proper env vars
honcho run --env docker/envfiles/prod.env ./bin/sync-all.sh