Changed script to require port number as first arg

This commit is contained in:
Conner Harkness 2025-06-24 11:43:40 -06:00
parent cb309511c3
commit 5f3dd988b6
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/files/
/plugins/ /plugins/
/*.db /*.db

View File

@ -1,3 +1,8 @@
#!/bin/bash #!/bin/bash
php -S 0.0.0.0:8080 index.php --enable-mbstring # https://stackoverflow.com/a/1482133
SCRIPT_DIR="$(dirname -- "$(readlink -f -- "$0";)";)"
cd "${SCRIPT_DIR}"
export PHP_CLI_SERVER_WORKERS=4
php -S 0.0.0.0:$1 index.php --enable-mbstring