@nocobase/cli 0.19.0-alpha.5 → 0.19.0-alpha.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/cli",
3
- "version": "0.19.0-alpha.5",
3
+ "version": "0.19.0-alpha.7",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./src/index.js",
@@ -8,7 +8,7 @@
8
8
  "nocobase": "./bin/index.js"
9
9
  },
10
10
  "dependencies": {
11
- "@nocobase/app": "0.19.0-alpha.5",
11
+ "@nocobase/app": "0.19.0-alpha.7",
12
12
  "@types/fs-extra": "^11.0.1",
13
13
  "@umijs/utils": "3.5.20",
14
14
  "chalk": "^4.1.1",
@@ -25,12 +25,12 @@
25
25
  "tsx": "^4.6.2"
26
26
  },
27
27
  "devDependencies": {
28
- "@nocobase/devtools": "0.19.0-alpha.5"
28
+ "@nocobase/devtools": "0.19.0-alpha.7"
29
29
  },
30
30
  "repository": {
31
31
  "type": "git",
32
32
  "url": "git+https://github.com/nocobase/nocobase.git",
33
33
  "directory": "packages/core/cli"
34
34
  },
35
- "gitHead": "580eca25451ec731d17ddef285d0b8c52c48d501"
35
+ "gitHead": "cbbfd4de14b8f73417e613af6927d2fbbdbd2b41"
36
36
  }
@@ -3,7 +3,6 @@ const { resolve } = require('path');
3
3
  const pAll = require('p-all');
4
4
  const dotenv = require('dotenv');
5
5
  const fs = require('fs');
6
- const { Client } = require('pg');
7
6
  const glob = require('glob');
8
7
  const _ = require('lodash');
9
8
 
@@ -22,7 +21,7 @@ const config = {
22
21
  async function runApp(dir, index = 0) {
23
22
  // 一个进程需要占用两个端口? (一个是应用端口,一个是 socket 端口)
24
23
  index = index * 2;
25
-
24
+ const { Client } = require('pg');
26
25
  const database = `nocobase${index}`;
27
26
  const client = new Client({
28
27
  host: config['DB_HOST'],
package/src/util.js CHANGED
@@ -272,11 +272,15 @@ exports.initEnv = function initEnv() {
272
272
  PLUGIN_STORAGE_PATH: resolve(process.cwd(), 'storage/plugins'),
273
273
  MFSU_AD: 'none',
274
274
  WS_PATH: '/ws',
275
+ SOCKET_PATH: 'storage/gateway.sock',
275
276
  NODE_MODULES_PATH: resolve(process.cwd(), 'node_modules'),
276
277
  PM2_HOME: resolve(process.cwd(), './storage/.pm2'),
277
278
  PLUGIN_PACKAGE_PREFIX: '@nocobase/plugin-,@nocobase/plugin-sample-,@nocobase/preset-',
278
279
  SERVER_TSCONFIG_PATH: './tsconfig.server.json',
279
280
  PLAYWRIGHT_AUTH_FILE: resolve(process.cwd(), 'storage/playwright/.auth/admin.json'),
281
+ CACHE_DEFAULT_STORE: 'memory',
282
+ CACHE_MEMORY_MAX: 2000,
283
+ LOGGER_BASE_PATH: 'storage/logs',
280
284
  };
281
285
 
282
286
  if (