void prepare()

Source

void prepare() {
  if (keyPath != null && certificatePath == null) {
    throw new CLIException("Configuration error: --ssl-key-path was specified, but --ssl-certificate-path was not.");
  }
  if (keyPath == null && certificatePath != null) {
    throw new CLIException("Configuration error: --ssl-certificate-path was specified, but --ssl-key-path was not.");
  }

  displayInfo("Preparing...");
  pidFilesInDirectory(projectDirectory).forEach((FileSystemEntity f) {
    var pidString =
        path_lib.relative(f.path, from: projectDirectory.path).split(".")[1];

    displayProgress("Stopping currently running server (PID: $pidString)");

    stopPidAndDelete(int.parse(pidString));
  });
}