mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-22 10:25: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";
|
||||
php -S "[::1]:40482" &
|
||||
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
|
||||
sleep 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue