run_dev.sh 515 B

1234567891011121314
  1. #!/bin/sh
  2. # This script launches Retro AIM Server using go run with the environment vars
  3. # defined in config/settings.env under MacOS/Linux. The script can be run from
  4. # any working directory--it assumes the location of config/command files
  5. # relative to the path of this script.
  6. set -e
  7. SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
  8. ENV_FILE="$SCRIPT_DIR/../config/settings.env"
  9. REPO_ROOT="$SCRIPT_DIR/.."
  10. # Run Retro AIM Server from repo root.
  11. cd "$REPO_ROOT"
  12. go run -v ./cmd/server -config "$ENV_FILE"