forked from longtao.wu/droboticflow
15 lines
590 B
Bash
15 lines
590 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
cd "$ROOT_DIR"
|
|
source scripts/local/env-local-snapshot.sh
|
|
export DROBOTICFLOW_DATABASE_BOOTSTRAP=verify-existing
|
|
export ANNOTATION_PROCESSOR_MODE=external
|
|
# Recompile before assigning the version; never stamp an existing stale binary.
|
|
export DROBOTICFLOW_BUILD_COMMIT="$(git rev-parse HEAD)"
|
|
if ! git diff --quiet HEAD --; then
|
|
export DROBOTICFLOW_BUILD_COMMIT="${DROBOTICFLOW_BUILD_COMMIT}-dirty"
|
|
fi
|
|
export DROBOTICFLOW_BUILD_TIME="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
|
exec go run ./cmd/api
|