create-nocobase-app 0.7.0-alpha.21 → 0.7.0-alpha.24
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": "create-nocobase-app",
|
|
3
|
-
"version": "0.7.0-alpha.
|
|
3
|
+
"version": "0.7.0-alpha.24",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"licenses": [
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
27
27
|
"directory": "packages/core/create-nocobase-app"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "1fb2dd884c4f2d2167f5dde40a15012a752e53ab"
|
|
30
30
|
}
|
package/src/create-app.js
CHANGED
|
@@ -54,7 +54,7 @@ const getDatabaseOptionsFromCommandOptions = (commandOptions) => {
|
|
|
54
54
|
if (!commandOptions.dbDialect || commandOptions.dbDialect === 'sqlite' || envs['DB_STORAGE']) {
|
|
55
55
|
return {
|
|
56
56
|
dialect: 'sqlite',
|
|
57
|
-
storage: envs['DB_STORAGE'] || 'db.sqlite',
|
|
57
|
+
storage: envs['DB_STORAGE'] || 'storage/db/nocobase.sqlite',
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -1,26 +1,31 @@
|
|
|
1
|
+
################# NOCOBASE APPLICATION #################
|
|
2
|
+
|
|
1
3
|
NOCOBASE_ENV=development
|
|
4
|
+
JWT_SECRET=<%= jwtSecret %>
|
|
2
5
|
|
|
3
6
|
SERVER_HOST=0.0.0.0
|
|
4
7
|
SERVER_PORT=3000
|
|
5
8
|
|
|
6
|
-
JWT_SECRET=<%= jwtSecret %>
|
|
7
|
-
|
|
8
9
|
# api base path endpoint for app(web)
|
|
9
10
|
SERVER_BASE_PATH=/api/
|
|
10
11
|
|
|
11
12
|
# api server access point for app(web when build)
|
|
12
13
|
SERVER_BASE_URL=
|
|
13
14
|
|
|
15
|
+
################# DATABASE #################
|
|
16
|
+
|
|
14
17
|
DB_LOG_SQL=off
|
|
15
18
|
<%= dbEnvs %>
|
|
16
19
|
|
|
20
|
+
################# STORAGE (Initialization only) #################
|
|
21
|
+
|
|
17
22
|
# local or ali-oss
|
|
18
23
|
DEFAULT_STORAGE_TYPE=local
|
|
19
|
-
STORAGE_TYPE=local
|
|
20
24
|
|
|
21
25
|
# LOCAL STORAGE
|
|
22
26
|
LOCAL_STORAGE_USE_STATIC_SERVER=true
|
|
23
27
|
LOCAL_STORAGE_BASE_URL=
|
|
28
|
+
LOCAL_STORAGE_DEST=storage/uploads
|
|
24
29
|
|
|
25
30
|
# ALI OSS STORAGE
|
|
26
31
|
ALI_OSS_STORAGE_BASE_URL=
|
|
@@ -7,14 +7,14 @@ module.exports = (opts) => {
|
|
|
7
7
|
workspaces: ['packages/app/*', 'packages/plugins/*'],
|
|
8
8
|
license: 'MIT',
|
|
9
9
|
scripts: {
|
|
10
|
-
start: 'concurrently --kill-others "
|
|
10
|
+
start: 'concurrently --kill-others "yarn start-server -s" "yarn start-client"',
|
|
11
11
|
bootstrap: 'lerna bootstrap',
|
|
12
12
|
clean: 'rimraf -rf packages/{app,plugins}/*/{lib,esm,dist} && lerna clean',
|
|
13
13
|
nocobase:
|
|
14
14
|
'cross-env DOTENV_CONFIG_PATH=.env ts-node-dev -r dotenv/config -r tsconfig-paths/register ./packages/app/server/src/index.ts',
|
|
15
15
|
'nocobase-prod': 'cross-env DOTENV_CONFIG_PATH=.env node -r dotenv/config packages/app/server/lib/index.js',
|
|
16
|
-
'start-client': 'cd packages/app/client &&
|
|
17
|
-
'start-server': '
|
|
16
|
+
'start-client': 'cd packages/app/client && yarn start',
|
|
17
|
+
'start-server': 'yarn nocobase start',
|
|
18
18
|
'start-pm2': 'pm2-runtime start --node-args="-r dotenv/config" packages/app/server/lib/index.js -- start',
|
|
19
19
|
build: 'lerna run build',
|
|
20
20
|
'build-docs': 'dumi build',
|