run_psla.sh #1

  • //
  • guest/
  • perforce_software/
  • log-analyzer/
  • psla/
  • psla/
  • run_psla.sh
  • View
  • Commits
  • Open Download .zip Download (385 B)
#!/bin/bash
# Run's the Perforce Server Log Analyzer using Flask

# Directory of current script
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"

# Parameter one (optional Port)
PORT=${1:-5000}

export PSLA_LOGS=${PSLA_LOGS:-$DIR/logs}
[[ -d $PSLA_LOGS ]] || mkdir $PSLA_LOGS

export FLASK_APP=$DIR/psla.py
export FLASK_DEBUG=1
flask run --host=0.0.0.0 --port=$PORT
# Change User Description Committed
#1 25526 Robert Cowham Add shell script to run easily.
Enhance README