Browse Source

Bugfix: Only write the development server PID file if it starts successfully

bugfix/performance
Starbeamrainbowlabs 3 years ago
parent
commit
aee55acb37
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 2
      build

2
build

@ -197,7 +197,7 @@ task_dev-server() { @@ -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…
Cancel
Save