Changed script to require port number as first arg
This commit is contained in:
parent
cb309511c3
commit
5f3dd988b6
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
|
/files/
|
||||||
/plugins/
|
/plugins/
|
||||||
/*.db
|
/*.db
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user