streaming-website/serve.sh
Daniel Molkentin fa4030a04f When claiming to be in rome, do as the romans do
No bashisms when claiming #!/bin/bash
2021-04-29 19:28:45 +02:00

22 lines
260 B
Bash
Executable file

#!/bin/sh
php_bin=""
port=8000
for try_bin in php7 php
do
php_bin=$(command -v $try_bin)
if [ -n "$php_bin" ]
then
break
fi
done
echo "Using PHP: $php_bin"
if [ -n "$1" ]
then
port=$1
fi
$php_bin -S localhost:$port -d short_open_tag=true index.php