homebench/run.sh

19 lines
314 B
Bash
Executable File

#! /bin/sh
#
# run.sh
# Copyright (C) 2020 jpk <jpk+dev@goatpr0n.de>
#
# Distributed under terms of the MIT license.
#
source venv/bin/activate
export FLASK_APP=homebench
export FLASK_ENV=${1:-development}
export FLASK_HOST=${2:-127.0.0.1}
export FLASK_PORT=${3:-5000}
flask run -p $FLASK_PORT -h $FLASK_HOST