Increase timeout for CLI startup
This commit is contained in:
@@ -53,12 +53,19 @@ export default defineConfig({
|
|||||||
port: 3000,
|
port: 3000,
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
|
minify: false,
|
||||||
|
cssMinify: false,
|
||||||
|
sourcemap: true,
|
||||||
outDir: resolve(__dirname, "dist/renderer"),
|
outDir: resolve(__dirname, "dist/renderer"),
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: {
|
input: {
|
||||||
main: uiRendererEntry,
|
main: uiRendererEntry,
|
||||||
loading: uiRendererLoadingEntry,
|
loading: uiRendererLoadingEntry,
|
||||||
},
|
},
|
||||||
|
output: {
|
||||||
|
compact: false,
|
||||||
|
minifyInternalExports: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ export class CliProcessManager extends EventEmitter {
|
|||||||
const timeout = setTimeout(() => {
|
const timeout = setTimeout(() => {
|
||||||
this.handleTimeout()
|
this.handleTimeout()
|
||||||
reject(new Error("CLI startup timeout"))
|
reject(new Error("CLI startup timeout"))
|
||||||
}, 15000)
|
}, 60000)
|
||||||
|
|
||||||
this.once("ready", (status) => {
|
this.once("ready", (status) => {
|
||||||
clearTimeout(timeout)
|
clearTimeout(timeout)
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ impl CliProcessManager {
|
|||||||
let ready_clone = ready.clone();
|
let ready_clone = ready.clone();
|
||||||
let child_holder_clone = child_holder.clone();
|
let child_holder_clone = child_holder.clone();
|
||||||
thread::spawn(move || {
|
thread::spawn(move || {
|
||||||
let timeout = Duration::from_secs(15);
|
let timeout = Duration::from_secs(60);
|
||||||
thread::sleep(timeout);
|
thread::sleep(timeout);
|
||||||
if ready_clone.load(Ordering::SeqCst) {
|
if ready_clone.load(Ordering::SeqCst) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user