Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using denokv fails because it doesn't include --unstable flag #2

Open
fro-profesional opened this issue Jun 7, 2023 · 0 comments
Open

Comments

@fro-profesional
Copy link

I'm using denokv and it fails because it because include --unstable flag, how about deno task start so that anyone can "change" the way their server starts?

const startFresh = async () => {
  const serverProcess = Deno.run({
    cmd: ["deno", "task", "start"],
    stdout: "piped",
    stderr: "inherit",
  });
  let started = false;
  for await (const line of readLines(serverProcess.stdout)) {
    console.log(line);
    if (line.includes("Listening on http://")) {
      started = true;
      break;
    }
  }
  if (!started) {
    throw new Error("Server didn't start up");
  }
  return serverProcess;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant