7 lines
258 B
Bash
Executable File
7 lines
258 B
Bash
Executable File
#!/usr/bin/env bash
|
|
cd "$(dirname "$0")"
|
|
[ -f .env ] && source .env
|
|
nohup $PWD/py3/bin/python $PWD/app/foms.py -p ${FOMS_PORT:-9080} -w $PWD > $PWD/logs/foms.out 2>&1 &
|
|
echo $! > foms.pid
|
|
echo "FOMS started (PID: $(cat foms.pid)) on port ${FOMS_PORT:-9080}"
|