mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
fix: handle cold dev startup and versioned dependency removal
This commit is contained in:
1 parent
a65d56a980
commit
0841e4e134
6 files changed
+211
-17
No files matched your search
+8
-4
@@ -42,11 +42,15 @@ class Application {
|
||||
}
|
||||
|
||||
private startMasterProcess() {
|
||||
// Source transpilation competes with the frontend's cold compilation in
|
||||
// development. Keep a bounded wait without applying that budget to normal
|
||||
// production startup.
|
||||
const readyTimeout =
|
||||
process.arch === 'arm' &&
|
||||
Number(
|
||||
(process.config.variables as { arm_version?: string | number }).arm_version,
|
||||
) === 6
|
||||
process.env.NODE_ENV === 'development' ||
|
||||
(process.arch === 'arm' &&
|
||||
Number(
|
||||
(process.config.variables as { arm_version?: string | number }).arm_version,
|
||||
) === 6)
|
||||
? 120000
|
||||
: 30000;
|
||||
// Fork gRPC worker first and wait for it to be ready
|
||||
|
||||
Reference in new issue
Block a user