@woniru/we-installer 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/authServer.js +7 -1
package/package.json
CHANGED
package/src/authServer.js
CHANGED
|
@@ -367,7 +367,6 @@ function startAuthServer({ verificationUri, userCode }) {
|
|
|
367
367
|
user,
|
|
368
368
|
password,
|
|
369
369
|
// NOTE: no database here on purpose
|
|
370
|
-
// Enable multi statements only when we apply schema below
|
|
371
370
|
multipleStatements: false
|
|
372
371
|
});
|
|
373
372
|
|
|
@@ -398,6 +397,13 @@ function startAuthServer({ verificationUri, userCode }) {
|
|
|
398
397
|
|
|
399
398
|
await dbConn.end();
|
|
400
399
|
|
|
400
|
+
fs.writeFileSync(path.join(state.installDir, "meta.json"), JSON.stringify({
|
|
401
|
+
databaseType: "mysql",
|
|
402
|
+
databaseHost: host,
|
|
403
|
+
databasePort: "3306",
|
|
404
|
+
databaseMeta: dbName
|
|
405
|
+
}, null, 2));
|
|
406
|
+
|
|
401
407
|
// 5) advance to step 3
|
|
402
408
|
state.configure.step = 3;
|
|
403
409
|
state.status = `Database ready ✅ (${dbName})`;
|