mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
Bugfix: Only write the development server PID file if it starts successfully
This commit is contained in:
parent
63bc4e536d
commit
aee55acb37
1 changed files with 1 additions and 1 deletions
2
build
2
build
|
@ -197,7 +197,7 @@ task_dev-server() {
|
||||||
task_begin "Starting development server";
|
task_begin "Starting development server";
|
||||||
php -S "[::1]:40482" &
|
php -S "[::1]:40482" &
|
||||||
exit_code=$?;
|
exit_code=$?;
|
||||||
echo $! >/tmp/micro-lantern-dev-server.pid;
|
[[ "${exit_code}" -eq "0" ]] && echo $! >/tmp/micro-lantern-dev-server.pid;
|
||||||
task_end $?; # Should be 0 unless php died for some reason
|
task_end $?; # Should be 0 unless php died for some reason
|
||||||
sleep 1;
|
sleep 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue