not-node 6.1.4 → 6.1.5

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.
Files changed (94) hide show
  1. package/bin/not-cli.mjs +145 -38
  2. package/package.json +1 -1
  3. package/playground/.env +16 -0
  4. package/playground/deploy/production.sh +13 -0
  5. package/playground/deploy/stage.sh +13 -0
  6. package/playground/nginx/development.conf +63 -0
  7. package/playground/nginx/production.conf +63 -0
  8. package/playground/nginx/stage.conf +63 -0
  9. package/playground/pm2/development.json +46 -0
  10. package/playground/pm2/production.json +46 -0
  11. package/playground/pm2/stage.json +46 -0
  12. package/playground/{.babelrc → site/.babelrc} +0 -0
  13. package/playground/{.eslintignore → site/.eslintignore} +0 -0
  14. package/playground/{.eslintrc.json → site/.eslintrc.json} +0 -0
  15. package/playground/{app/front/build/guest.css → site/app/front/build/admin.css} +0 -0
  16. package/playground/{app → site/app}/front/build/admin.js +2 -1
  17. package/playground/{app → site/app}/front/build/client.css +1 -1
  18. package/playground/{app → site/app}/front/build/client.js +2 -1
  19. package/playground/{app/front/build/admin.css → site/app/front/build/guest.css} +1 -1
  20. package/playground/{app → site/app}/front/build/guest.js +2 -1
  21. package/playground/{app → site/app}/front/build/root.css +1 -1
  22. package/playground/{app → site/app}/front/build/root.js +2 -1
  23. package/playground/{app → site/app}/front/build/user.css +1 -1
  24. package/playground/{app → site/app}/front/build/user.js +2 -1
  25. package/playground/{app → site/app}/front/build.env.js +0 -0
  26. package/playground/{app → site/app}/front/index.!.js +2 -0
  27. package/playground/{app → site/app}/front/index.admin.js +16 -14
  28. package/playground/{app → site/app}/front/index.client.js +16 -14
  29. package/playground/{app → site/app}/front/index.guest.js +16 -14
  30. package/playground/{app → site/app}/front/index.root.js +24 -22
  31. package/playground/{app → site/app}/front/index.user.js +16 -14
  32. package/playground/{app → site/app}/front/rollup.!.js +0 -0
  33. package/playground/{app → site/app}/front/rollup.admin.js +2 -2
  34. package/playground/{app/front/rollup.root.js → site/app/front/rollup.client.js} +2 -2
  35. package/playground/{app → site/app}/front/rollup.guest.js +2 -2
  36. package/playground/{app/front/rollup.client.js → site/app/front/rollup.root.js} +2 -2
  37. package/playground/{app → site/app}/front/rollup.user.js +2 -2
  38. package/playground/{app → site/app}/front/src/admin/main/index.js +0 -0
  39. package/playground/{app → site/app}/front/src/client/main/index.js +0 -0
  40. package/playground/{app → site/app}/front/src/common/index.js +1 -1
  41. package/playground/{app → site/app}/front/src/common/ncInit.js +0 -0
  42. package/playground/{app → site/app}/front/src/common/ws.client.main.js +0 -0
  43. package/playground/{app → site/app}/front/src/guest/main/index.js +0 -0
  44. package/playground/{app → site/app}/front/src/root/main/index.js +0 -0
  45. package/playground/{app → site/app}/front/src/user/main/index.js +0 -0
  46. package/playground/{app → site/app}/server/app.js +0 -0
  47. package/playground/site/app/server/config/common.json +126 -0
  48. package/playground/site/app/server/config/development.json +33 -0
  49. package/playground/{app → site/app}/server/config/production.json +1 -1
  50. package/playground/{app → site/app}/server/config/stage.json +1 -1
  51. package/playground/{app → site/app}/server/index.js +0 -0
  52. package/playground/{app → site/app}/server/routes/index.js +0 -0
  53. package/playground/{app → site/app}/server/routes/site.js +0 -0
  54. package/playground/{app → site/app}/server/views/admin/foot.pug +0 -0
  55. package/playground/{app → site/app}/server/views/admin/head.pug +0 -0
  56. package/playground/{app → site/app}/server/views/admin/menu.pug +0 -0
  57. package/playground/{app → site/app}/server/views/admin.pug +0 -0
  58. package/playground/{app → site/app}/server/views/dashboard.pug +0 -0
  59. package/playground/{app → site/app}/server/views/index.pug +0 -0
  60. package/playground/{app → site/app}/server/views/parts/header.android.pug +0 -0
  61. package/playground/{app → site/app}/server/views/parts/header.ios.pug +0 -0
  62. package/playground/{app → site/app}/server/views/parts/header.pug +0 -0
  63. package/playground/{app → site/app}/server/views/parts/menu.pug +0 -0
  64. package/playground/{app → site/app}/server/views/parts/overview.pug +0 -0
  65. package/playground/{app → site/app}/server/ws/auth.js +0 -0
  66. package/playground/{app → site/app}/server/ws/index.js +0 -0
  67. package/playground/{bin → site/bin}/build.sh +0 -0
  68. package/playground/{package.json → site/package.json} +0 -0
  69. package/playground/{project.manifest.json → site/project.manifest.json} +0 -0
  70. package/src/cli/const.mjs +9 -0
  71. package/src/cli/readers/debugPort.mjs +16 -0
  72. package/src/cli/readers/deploy.mjs +80 -0
  73. package/src/cli/readers/hostname.mjs +4 -5
  74. package/src/cli/readers/index.mjs +12 -0
  75. package/src/cli/readers/init_root_user.mjs +9 -8
  76. package/src/cli/readers/nginx.mjs +41 -0
  77. package/src/cli/readers/not_node_monitor.mjs +7 -4
  78. package/src/cli/readers/not_node_reporter.mjs +6 -3
  79. package/src/cli/readers/pm2.mjs +29 -0
  80. package/src/cli/readers/ssl.mjs +2 -1
  81. package/src/cli/readers/ws.mjs +6 -4
  82. package/src/cli/renderers/deploy.mjs +39 -0
  83. package/src/cli/renderers/index.mjs +9 -0
  84. package/src/cli/renderers/nginx.mjs +44 -0
  85. package/src/cli/renderers/pm2.mjs +42 -0
  86. package/tmpl/dirs/project.mjs +18 -0
  87. package/tmpl/dirs/server.mjs +4 -3
  88. package/tmpl/files/app/config/common.ejs +2 -4
  89. package/tmpl/files/project/deploy.ejs +13 -0
  90. package/tmpl/files/{app → project}/env.ejs +3 -3
  91. package/tmpl/files/project/nginx.ejs +63 -0
  92. package/tmpl/files/project/pm2.ejs +46 -0
  93. package/playground/app/server/config/common.json +0 -106
  94. package/playground/app/server/config/development.json +0 -34
@@ -1,4 +1,6 @@
1
1
 
2
+ window.NOT_NODE_ERROR_URL_BROWSER = 'https://appmon.ru/api/key/collect';
3
+
2
4
 
3
5
  import {
4
6
  Frame
@@ -42,7 +44,7 @@
42
44
 
43
45
 
44
46
  import * as mod_0
45
- from '/var/server/nn/playground/node_modules/not-options/src/controllers/common';
47
+ from '/var/server/nn/playground/site/node_modules/not-options/src/controllers/common';
46
48
  appDefaultOptions = notCommon.absorbModule({
47
49
  defaultConf: appDefaultOptions,
48
50
  mod: mod_0,
@@ -50,7 +52,7 @@
50
52
  });
51
53
 
52
54
  import * as mod_1
53
- from '/var/server/nn/playground/node_modules/not-filter/src/controllers/common';
55
+ from '/var/server/nn/playground/site/node_modules/not-filter/src/controllers/common';
54
56
  appDefaultOptions = notCommon.absorbModule({
55
57
  defaultConf: appDefaultOptions,
56
58
  mod: mod_1,
@@ -58,7 +60,7 @@
58
60
  });
59
61
 
60
62
  import * as mod_2
61
- from '/var/server/nn/playground/node_modules/not-notification/src/controllers/user';
63
+ from '/var/server/nn/playground/site/node_modules/not-notification/src/controllers/user';
62
64
  appDefaultOptions = notCommon.absorbModule({
63
65
  defaultConf: appDefaultOptions,
64
66
  mod: mod_2,
@@ -66,7 +68,7 @@
66
68
  });
67
69
 
68
70
  import * as mod_3
69
- from '/var/server/nn/playground/node_modules/not-locale/src/controllers/common';
71
+ from '/var/server/nn/playground/site/node_modules/not-locale/src/controllers/common';
70
72
  appDefaultOptions = notCommon.absorbModule({
71
73
  defaultConf: appDefaultOptions,
72
74
  mod: mod_3,
@@ -74,7 +76,7 @@
74
76
  });
75
77
 
76
78
  import * as mod_4
77
- from '/var/server/nn/playground/node_modules/not-key/src/controllers/common';
79
+ from '/var/server/nn/playground/site/node_modules/not-key/src/controllers/common';
78
80
  appDefaultOptions = notCommon.absorbModule({
79
81
  defaultConf: appDefaultOptions,
80
82
  mod: mod_4,
@@ -82,7 +84,7 @@
82
84
  });
83
85
 
84
86
  import * as mod_5
85
- from '/var/server/nn/playground/node_modules/not-ws/src/controllers/common';
87
+ from '/var/server/nn/playground/site/node_modules/not-ws/src/controllers/common';
86
88
  appDefaultOptions = notCommon.absorbModule({
87
89
  defaultConf: appDefaultOptions,
88
90
  mod: mod_5,
@@ -90,7 +92,7 @@
90
92
  });
91
93
 
92
94
  import * as mod_6
93
- from '/var/server/nn/playground/node_modules/not-store/src/controllers/common';
95
+ from '/var/server/nn/playground/site/node_modules/not-store/src/controllers/common';
94
96
  appDefaultOptions = notCommon.absorbModule({
95
97
  defaultConf: appDefaultOptions,
96
98
  mod: mod_6,
@@ -98,7 +100,7 @@
98
100
  });
99
101
 
100
102
  import * as mod_7
101
- from '/var/server/nn/playground/node_modules/not-dbdump/src/controllers/common';
103
+ from '/var/server/nn/playground/site/node_modules/not-dbdump/src/controllers/common';
102
104
  appDefaultOptions = notCommon.absorbModule({
103
105
  defaultConf: appDefaultOptions,
104
106
  mod: mod_7,
@@ -106,7 +108,7 @@
106
108
  });
107
109
 
108
110
  import * as mod_8
109
- from '/var/server/nn/playground/node_modules/not-user/src/controllers/user';
111
+ from '/var/server/nn/playground/site/node_modules/not-user/src/controllers/user';
110
112
  appDefaultOptions = notCommon.absorbModule({
111
113
  defaultConf: appDefaultOptions,
112
114
  mod: mod_8,
@@ -114,7 +116,7 @@
114
116
  });
115
117
 
116
118
  import * as mod_9
117
- from '/var/server/nn/playground/node_modules/not-user/src/controllers/common';
119
+ from '/var/server/nn/playground/site/node_modules/not-user/src/controllers/common';
118
120
  appDefaultOptions = notCommon.absorbModule({
119
121
  defaultConf: appDefaultOptions,
120
122
  mod: mod_9,
@@ -122,7 +124,7 @@
122
124
  });
123
125
 
124
126
  import * as mod_10
125
- from '/var/server/nn/playground/node_modules/not-error/src/controllers/common';
127
+ from '/var/server/nn/playground/site/node_modules/not-error/src/controllers/common';
126
128
  appDefaultOptions = notCommon.absorbModule({
127
129
  defaultConf: appDefaultOptions,
128
130
  mod: mod_10,
@@ -130,7 +132,7 @@
130
132
  });
131
133
 
132
134
  import * as mod_11
133
- from '/var/server/nn/playground/app/front/src/common';
135
+ from '/var/server/nn/playground/site/app/front/src/common';
134
136
  appDefaultOptions = notCommon.absorbModule({
135
137
  defaultConf: appDefaultOptions,
136
138
  mod: mod_11,
@@ -138,7 +140,7 @@
138
140
  });
139
141
 
140
142
  import * as mod_12
141
- from '/var/server/nn/playground/app/front/src/user/main';
143
+ from '/var/server/nn/playground/site/app/front/src/user/main';
142
144
  appDefaultOptions = notCommon.absorbModule({
143
145
  defaultConf: appDefaultOptions,
144
146
  mod: mod_12,
@@ -151,7 +153,7 @@
151
153
  import 'bulma';
152
154
 
153
155
 
154
- import '/var/server/nn/playground/node_modules/not-user/src/styles/common/common.scss';
156
+ import '/var/server/nn/playground/site/node_modules/not-user/src/styles/common/common.scss';
155
157
 
156
158
 
157
159
  appDefaultOptions.services = services;
File without changes
@@ -11,9 +11,9 @@ import json from "@rollup/plugin-json";
11
11
  import { babelOn } from "./build.env.js";
12
12
 
13
13
  export default {
14
- input: "/var/server/nn/playground/app/front/index.admin.js",
14
+ input: "/var/server/nn/playground/site/app/front/index.admin.js",
15
15
  output: {
16
- file: "/var/server/nn/playground/app/front/build/admin.js",
16
+ file: "/var/server/nn/playground/site/app/front/build/admin.js",
17
17
  name: "notNodeApplication",
18
18
  format: "iife",
19
19
  sourcemap:
@@ -11,9 +11,9 @@ import json from "@rollup/plugin-json";
11
11
  import { babelOn } from "./build.env.js";
12
12
 
13
13
  export default {
14
- input: "/var/server/nn/playground/app/front/index.root.js",
14
+ input: "/var/server/nn/playground/site/app/front/index.client.js",
15
15
  output: {
16
- file: "/var/server/nn/playground/app/front/build/root.js",
16
+ file: "/var/server/nn/playground/site/app/front/build/client.js",
17
17
  name: "notNodeApplication",
18
18
  format: "iife",
19
19
  sourcemap:
@@ -11,9 +11,9 @@ import json from "@rollup/plugin-json";
11
11
  import { babelOn } from "./build.env.js";
12
12
 
13
13
  export default {
14
- input: "/var/server/nn/playground/app/front/index.guest.js",
14
+ input: "/var/server/nn/playground/site/app/front/index.guest.js",
15
15
  output: {
16
- file: "/var/server/nn/playground/app/front/build/guest.js",
16
+ file: "/var/server/nn/playground/site/app/front/build/guest.js",
17
17
  name: "notNodeApplication",
18
18
  format: "iife",
19
19
  sourcemap:
@@ -11,9 +11,9 @@ import json from "@rollup/plugin-json";
11
11
  import { babelOn } from "./build.env.js";
12
12
 
13
13
  export default {
14
- input: "/var/server/nn/playground/app/front/index.client.js",
14
+ input: "/var/server/nn/playground/site/app/front/index.root.js",
15
15
  output: {
16
- file: "/var/server/nn/playground/app/front/build/client.js",
16
+ file: "/var/server/nn/playground/site/app/front/build/root.js",
17
17
  name: "notNodeApplication",
18
18
  format: "iife",
19
19
  sourcemap:
@@ -11,9 +11,9 @@ import json from "@rollup/plugin-json";
11
11
  import { babelOn } from "./build.env.js";
12
12
 
13
13
  export default {
14
- input: "/var/server/nn/playground/app/front/index.user.js",
14
+ input: "/var/server/nn/playground/site/app/front/index.user.js",
15
15
  output: {
16
- file: "/var/server/nn/playground/app/front/build/user.js",
16
+ file: "/var/server/nn/playground/site/app/front/build/user.js",
17
17
  name: "notNodeApplication",
18
18
  format: "iife",
19
19
  sourcemap:
@@ -19,7 +19,7 @@ let manifest = {
19
19
  //options for ws client here
20
20
  main: {
21
21
  host: '' || window.location.hostname,
22
- port: 3030,
22
+ port: 3001,
23
23
  path: 'websocket',
24
24
  secure: true,
25
25
  ssl: false
File without changes
@@ -0,0 +1,126 @@
1
+ {
2
+ "port": 3000,
3
+ "host": "localhost",
4
+ "cors": [
5
+ ""
6
+ ],
7
+ "template": {
8
+ "engine": "pug",
9
+ "views": "views",
10
+ "partialsDir": "partials",
11
+ "partials": {}
12
+ },
13
+ "db": {
14
+ "mongoose": {
15
+ "uri": "mongodb://localhost/reporter?authSource=reporter",
16
+ "options": {
17
+ "useNewUrlParser": true,
18
+ "useUnifiedTopology": true,
19
+ "db": "reporter",
20
+ "host": "localhost",
21
+ "user": "reporter",
22
+ "pass": "developer",
23
+ "autoIndex": false
24
+ }
25
+ },
26
+ "redis": {},
27
+ "ioredis": {
28
+ "enableOfflineQueue": false
29
+ }
30
+ },
31
+ "session": {
32
+ "driver": "redis",
33
+ "secret": "liIP3qDKWpbBqfaX9s7uVLklLKuMeZi4tEFvJY1B",
34
+ "cookie": {
35
+ "maxAge": 2628000000
36
+ },
37
+ "key": "SessionID"
38
+ },
39
+ "path": {
40
+ "static": "../static",
41
+ "app": "/client",
42
+ "dbDumps": "../../../db.dumps",
43
+ "front": "../front/build",
44
+ "ws": "./ws"
45
+ },
46
+ "defaultUserRole": "user",
47
+ "modules": {
48
+ "ws": {
49
+ "servers": {
50
+ "main": {
51
+ "connection": {
52
+ "port": 3001,
53
+ "secure": true,
54
+ "secret": "A9PDMCNecv7bz0CrpDA5Key8YjkzYPvNPEq88clq"
55
+ }
56
+ }
57
+ }
58
+ },
59
+ "user": {
60
+ "errors": {
61
+ "noUserData": false,
62
+ "noUserWithId": false
63
+ },
64
+ "debug": {
65
+ "loaded": false
66
+ },
67
+ "tokenTTL": 3600,
68
+ "secret": "A9PDMCNecv7bz0CrpDA5Key8YjkzYPvNPEq88clq",
69
+ "roles": {
70
+ "primary": [
71
+ "root",
72
+ "admin",
73
+ "client",
74
+ "user",
75
+ "guest"
76
+ ],
77
+ "secondary": [
78
+ "confirmed",
79
+ "manager"
80
+ ]
81
+ },
82
+ "restrict": {
83
+ "registration": false
84
+ }
85
+ },
86
+ "rateLimiter": {
87
+ "keyPrefix": "rateLimiterMiddleware",
88
+ "points": 500,
89
+ "duration": 1
90
+ }
91
+ },
92
+ "middleware": {
93
+ "not-options": {},
94
+ "not-filter": {},
95
+ "not-notification": {},
96
+ "not-locale": {},
97
+ "not-inform": {},
98
+ "not-inform-rule-tag": {},
99
+ "not-inform-sink-email": {},
100
+ "not-inform-sink-notification": {},
101
+ "not-inform-sink-ws": {},
102
+ "not-key": {},
103
+ "not-ws": {},
104
+ "not-store": {},
105
+ "not-dbdump": {},
106
+ "not-user": {},
107
+ "not-error": {}
108
+ },
109
+ "importModulesFromNPM": [
110
+ "not-options",
111
+ "not-filter",
112
+ "not-notification",
113
+ "not-locale",
114
+ "not-inform",
115
+ "not-inform-rule-tag",
116
+ "not-inform-sink-email",
117
+ "not-inform-sink-notification",
118
+ "not-inform-sink-ws",
119
+ "not-key",
120
+ "not-ws",
121
+ "not-store",
122
+ "not-dbdump",
123
+ "not-user",
124
+ "not-error"
125
+ ]
126
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "hostname": "localhost",
3
+ "CSP": {
4
+ "connect": [
5
+ "'self'",
6
+ "*",
7
+ "wss:",
8
+ "https:",
9
+ "'unsafe-inline'"
10
+ ],
11
+ "default": [
12
+ "'self'",
13
+ "*",
14
+ "wss:",
15
+ "https:",
16
+ "'unsafe-inline'"
17
+ ],
18
+ "img": [
19
+ "'self'",
20
+ "data:"
21
+ ],
22
+ "script": [
23
+ "'self'",
24
+ "'unsafe-eval'",
25
+ "'unsafe-inline'"
26
+ ],
27
+ "style": [
28
+ "'self'",
29
+ "'unsafe-inline'",
30
+ "'unsafe-eval'"
31
+ ]
32
+ }
33
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "hostname":"localhost",
2
+ "hostname":"not-node-application",
3
3
  "CSP": {
4
4
  "connect": [
5
5
  "'self'",
@@ -1,5 +1,5 @@
1
1
  {
2
- "hostname":"localhost",
2
+ "hostname":"stage.not-node-application",
3
3
  "CSP": {
4
4
  "connect": [
5
5
  "'self'",
File without changes
File without changes
File without changes
File without changes
File without changes
package/src/cli/const.mjs CHANGED
@@ -69,3 +69,12 @@ export { DEFAULT_MODULES_SET_ENABLED };
69
69
 
70
70
  const DEFAULT_NODE_API_URL = "https://appmon.ru/api/key/collect";
71
71
  export { DEFAULT_NODE_API_URL };
72
+
73
+ function getDefaultPortByShift(port, shift) {
74
+ if (port && !isNaN(parseInt(port))) {
75
+ return parseInt(port) + shift;
76
+ }
77
+ return false;
78
+ }
79
+
80
+ export { getDefaultPortByShift };
@@ -0,0 +1,16 @@
1
+ import { getDefaultPortByShift } from "../const.mjs";
2
+
3
+ export default (inquirer, config) => {
4
+ return inquirer
5
+ .prompt([
6
+ {
7
+ type: "input",
8
+ name: "debugPort",
9
+ message: "Debug port number for development env",
10
+ default: getDefaultPortByShift(config.port, 2),
11
+ },
12
+ ])
13
+ .then(({ debugPort }) => {
14
+ return debugPort;
15
+ });
16
+ };
@@ -0,0 +1,80 @@
1
+ import os from "node:os";
2
+ const envs = ["development", "stage", "production"];
3
+
4
+ let cache = {
5
+ user: os.userInfo().username,
6
+ path: "/var/server",
7
+ };
8
+
9
+ function collectData(inquirer, env, config) {
10
+ return inquirer
11
+ .prompt([
12
+ {
13
+ type: "input",
14
+ name: "user",
15
+ message: `${env}: SSH user`,
16
+ default: cache.user || "",
17
+ },
18
+ {
19
+ type: "input",
20
+ name: "hostname",
21
+ message: `${env}: server address`,
22
+ default: config.hostname[env],
23
+ },
24
+ {
25
+ type: "input",
26
+ name: "path",
27
+ message: `${env}: path on remote server`,
28
+ default: cache.path || "",
29
+ },
30
+ ])
31
+ .then((answer) => {
32
+ cache = { ...answer };
33
+ return answer;
34
+ });
35
+ }
36
+
37
+ function collectThisEnv(inquirer, env) {
38
+ return inquirer
39
+ .prompt([
40
+ {
41
+ type: "confirm",
42
+ name: "enabled",
43
+ message: `Create deploy script for '${env}'?`,
44
+ default: ["stage", "production"].includes(env),
45
+ },
46
+ ])
47
+ .then(({ enabled }) => enabled);
48
+ }
49
+
50
+ async function collectForAllEnvs(inquirer, config) {
51
+ let result = {};
52
+ cache.path = `/var/server/${config.appName}`;
53
+ for (let env of envs) {
54
+ if (await collectThisEnv(inquirer, env)) {
55
+ result[env] = await collectData(inquirer, env, config);
56
+ } else {
57
+ result[env] = false;
58
+ }
59
+ }
60
+ return result;
61
+ }
62
+
63
+ export default (inquirer, config) => {
64
+ return inquirer
65
+ .prompt([
66
+ {
67
+ type: "confirm",
68
+ name: "enabled",
69
+ message: "Create deploy scripts?",
70
+ default: true,
71
+ },
72
+ ])
73
+ .then((answer) => {
74
+ if (answer.enabled) {
75
+ return collectForAllEnvs(inquirer, config);
76
+ } else {
77
+ return false;
78
+ }
79
+ });
80
+ };
@@ -1,23 +1,22 @@
1
- const DEFAULT_HOST = "localhost";
2
- export default (inquirer) => {
1
+ export default (inquirer, config) => {
3
2
  return inquirer.prompt([
4
3
  {
5
4
  type: "input",
6
5
  name: "development",
7
6
  message: "Hostname (dev)",
8
- default: DEFAULT_HOST,
7
+ default: `${config.appName}.local`,
9
8
  },
10
9
  {
11
10
  type: "input",
12
11
  name: "stage",
13
12
  message: "Hostname (stage)",
14
- default: DEFAULT_HOST,
13
+ default: `stage.${config.appName}`,
15
14
  },
16
15
  {
17
16
  type: "input",
18
17
  name: "production",
19
18
  message: "Hostname (production)",
20
- default: DEFAULT_HOST,
19
+ default: `${config.appName}`,
21
20
  },
22
21
  ]);
23
22
  };
@@ -16,6 +16,15 @@ export { cors };
16
16
  import db from "./db.mjs";
17
17
  export { db };
18
18
 
19
+ import deploy from "./deploy.mjs";
20
+ export { deploy };
21
+
22
+ import debugPort from "./debugPort.mjs";
23
+ export { debugPort };
24
+
25
+ import pm2 from "./pm2.mjs";
26
+ export { pm2 };
27
+
19
28
  import filter from "./filter.mjs";
20
29
  export { filter };
21
30
 
@@ -46,6 +55,9 @@ export { ModelName };
46
55
  import modules from "./modules.mjs";
47
56
  export { modules };
48
57
 
58
+ import nginx from "./nginx.mjs";
59
+ export { nginx };
60
+
49
61
  import not_node_monitor from "./not_node_monitor.mjs";
50
62
  export { not_node_monitor };
51
63