Make development script only listen on localhost.
This commit is contained in:
parent
399d54b1c3
commit
772dd62a55
2
dev.bat
2
dev.bat
|
@ -6,4 +6,4 @@ IF EXIST "pvv.sqlite" goto sqlite_end
|
||||||
sqlite3 pvv.sqlite < pvv.sql
|
sqlite3 pvv.sqlite < pvv.sql
|
||||||
:sqlite_end
|
:sqlite_end
|
||||||
|
|
||||||
php -S [::]:1080 -t www/ -c php.ini
|
php -S [::1]:1080 -t www/ -c php.ini
|
||||||
|
|
2
dev.sh
2
dev.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
which sqlite3 > /dev/null 2>&1 && test \! -e pvv.sqlite && sqlite3 pvv.sqlite < pvv.sql
|
which sqlite3 > /dev/null 2>&1 && test \! -e pvv.sqlite && sqlite3 pvv.sqlite < pvv.sql
|
||||||
test \! -e sql_config.php && cp sql_config_example.php sql_config.php
|
test \! -e sql_config.php && cp sql_config_example.php sql_config.php
|
||||||
php -S [::]:1080 -t www/
|
php -S [::1]:1080 -t www/
|
||||||
|
|
Loading…
Reference in New Issue