remove logs, tested
This commit is contained in:
parent
ef7c39e4e9
commit
13bdfff9f8
5
start.js
5
start.js
@ -5,15 +5,12 @@ const envName = process.argv[2];
|
||||
const expoStart = spawn("expo", ["start", "-c"]);
|
||||
|
||||
expoStart.stdout.on("data", (data) => {
|
||||
console.log(`${data}`);
|
||||
|
||||
if (data.toString().includes("Logs for your project will appear below")) {
|
||||
console.log("Shutting down the server...");
|
||||
expoStart.kill("SIGINT");
|
||||
}
|
||||
});
|
||||
|
||||
expoStart.on("close", () => {
|
||||
const env = { ...process.env, NODE_ENV: envName };
|
||||
spawn("expo", ["run:android"], { env, stdio: 'inherit' });
|
||||
spawn("expo", ["run:android"], { env, stdio: "inherit" });
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user