diff options
author | MaZderMind | 2016-08-19 11:23:42 +0200 |
---|---|---|
committer | MaZderMind | 2016-08-19 11:23:42 +0200 |
commit | c13bd57ed14da1d44426e09918700b46eb3f12b7 (patch) | |
tree | cf1cf0fbd927dcb13731bf1cfd2acb9d6cbb9517 /serve.sh | |
parent | e10fb9bb5bc69e9e93ca89280950d114d918a974 (diff) |
allow specifying the serving port
Diffstat (limited to 'serve.sh')
-rwxr-xr-x | serve.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,2 +1,4 @@ #!/bin/sh -php -S localhost:8000 -d short_open_tag=true index.php +port=8000 +if [ -n "$1" ]; then port=$1; fi +php -S localhost:$port -d short_open_tag=true index.php |