owox 0.10.0-next-20251019133741 → 0.10.0-next-20251020102503
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/dist/commands/base.js
CHANGED
|
@@ -139,7 +139,7 @@ export class BaseCommand extends Command {
|
|
|
139
139
|
flagVarsOverride: true,
|
|
140
140
|
});
|
|
141
141
|
this.initializeLogging();
|
|
142
|
-
this.logger?.info(
|
|
142
|
+
this.logger?.info(`Setting environment variables...`);
|
|
143
143
|
for (const logMessage of setResult.messages) {
|
|
144
144
|
this.logger?.log(logMessage.logLevel, logMessage.message);
|
|
145
145
|
}
|
|
@@ -20,7 +20,7 @@ export default class DumpApply extends BaseCommand {
|
|
|
20
20
|
const { flags } = await this.parse(DumpApply);
|
|
21
21
|
this.loadEnvironment(flags);
|
|
22
22
|
const packageInfo = getPackageInfo();
|
|
23
|
-
this.log(
|
|
23
|
+
this.log(`Starting OWOX Data Marts Dump Apply (v${packageInfo.version})...`);
|
|
24
24
|
try {
|
|
25
25
|
const { applyDump } = await import('@owox/backend');
|
|
26
26
|
await applyDump();
|
|
@@ -20,7 +20,7 @@ export default class DumpCreate extends BaseCommand {
|
|
|
20
20
|
const { flags } = await this.parse(DumpCreate);
|
|
21
21
|
this.loadEnvironment(flags);
|
|
22
22
|
const packageInfo = getPackageInfo();
|
|
23
|
-
this.log(
|
|
23
|
+
this.log(`Starting OWOX Data Marts Dump Create (v${packageInfo.version})...`);
|
|
24
24
|
try {
|
|
25
25
|
const { dumpInserts } = await import('@owox/backend');
|
|
26
26
|
await dumpInserts();
|
package/dist/commands/serve.js
CHANGED
|
@@ -65,7 +65,7 @@ export default class Serve extends BaseCommand {
|
|
|
65
65
|
const { flags } = await this.parse(Serve);
|
|
66
66
|
this.loadEnvironment(flags);
|
|
67
67
|
const packageInfo = getPackageInfo();
|
|
68
|
-
this.log(
|
|
68
|
+
this.log(`Starting OWOX Data Marts (v${packageInfo.version})...`);
|
|
69
69
|
this.setupGracefulShutdown();
|
|
70
70
|
try {
|
|
71
71
|
await this.startApplication(flags);
|
|
@@ -137,7 +137,7 @@ export default class Serve extends BaseCommand {
|
|
|
137
137
|
async startApplication(flags) {
|
|
138
138
|
const port = process.env.PORT;
|
|
139
139
|
const logFormat = process.env.LOG_FORMAT;
|
|
140
|
-
this.log(
|
|
140
|
+
this.log(`Starting server on port ${port} with ${logFormat} logs...`);
|
|
141
141
|
const { bootstrap, createHealthProbe } = await import('@owox/backend');
|
|
142
142
|
const expressApp = express();
|
|
143
143
|
expressApp.set('trust proxy', 1);
|
|
@@ -157,20 +157,20 @@ export default class Serve extends BaseCommand {
|
|
|
157
157
|
if (flags['web-enabled']) {
|
|
158
158
|
const staticAssetsConfigured = setupWebStaticAssets(expressApp);
|
|
159
159
|
if (staticAssetsConfigured) {
|
|
160
|
-
this.log('
|
|
160
|
+
this.log('Web interface static assets configured');
|
|
161
161
|
}
|
|
162
162
|
else {
|
|
163
|
-
this.warn('
|
|
163
|
+
this.warn(' Web static assets not found, continuing without web interface');
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
else {
|
|
167
|
-
this.log('
|
|
167
|
+
this.log('Web interface disabled');
|
|
168
168
|
}
|
|
169
169
|
try {
|
|
170
170
|
this.app = await bootstrap({ express: expressApp });
|
|
171
171
|
currentBackendApp = createHealthProbe(this.app);
|
|
172
|
-
this.log(
|
|
173
|
-
this.log(
|
|
172
|
+
this.log(`Process ID: ${process.pid}`);
|
|
173
|
+
this.log(`Server started successfully. Open http://localhost:${port} in your browser.`);
|
|
174
174
|
// Keep process alive until shutdown
|
|
175
175
|
await this.waitForShutdown();
|
|
176
176
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "owox",
|
|
3
3
|
"description": "OWOX Data Marts CLI: Simple command-line interface to start the OWOX Data Marts application with backend and frontend components.",
|
|
4
|
-
"version": "0.10.0-next-
|
|
4
|
+
"version": "0.10.0-next-20251020102503",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"@oclif/core": "^4",
|
|
14
14
|
"@oclif/plugin-help": "^6",
|
|
15
15
|
"@oclif/plugin-plugins": "^5",
|
|
16
|
-
"@owox/backend": "0.10.0-next-
|
|
17
|
-
"@owox/idp-better-auth": "0.10.0-next-
|
|
18
|
-
"@owox/idp-owox": "0.10.0-next-
|
|
19
|
-
"@owox/idp-protocol": "0.10.0-next-
|
|
20
|
-
"@owox/internal-helpers": "0.10.0-next-
|
|
21
|
-
"@owox/web": "0.10.0-next-
|
|
16
|
+
"@owox/backend": "0.10.0-next-20251020102503",
|
|
17
|
+
"@owox/idp-better-auth": "0.10.0-next-20251020102503",
|
|
18
|
+
"@owox/idp-owox": "0.10.0-next-20251020102503",
|
|
19
|
+
"@owox/idp-protocol": "0.10.0-next-20251020102503",
|
|
20
|
+
"@owox/internal-helpers": "0.10.0-next-20251020102503",
|
|
21
|
+
"@owox/web": "0.10.0-next-20251020102503",
|
|
22
22
|
"find-process": "^1.4.10"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|