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.
- package/bin/not-cli.mjs +145 -38
- package/package.json +1 -1
- package/playground/.env +16 -0
- package/playground/deploy/production.sh +13 -0
- package/playground/deploy/stage.sh +13 -0
- package/playground/nginx/development.conf +63 -0
- package/playground/nginx/production.conf +63 -0
- package/playground/nginx/stage.conf +63 -0
- package/playground/pm2/development.json +46 -0
- package/playground/pm2/production.json +46 -0
- package/playground/pm2/stage.json +46 -0
- package/playground/{.babelrc → site/.babelrc} +0 -0
- package/playground/{.eslintignore → site/.eslintignore} +0 -0
- package/playground/{.eslintrc.json → site/.eslintrc.json} +0 -0
- package/playground/{app/front/build/guest.css → site/app/front/build/admin.css} +0 -0
- package/playground/{app → site/app}/front/build/admin.js +2 -1
- package/playground/{app → site/app}/front/build/client.css +1 -1
- package/playground/{app → site/app}/front/build/client.js +2 -1
- package/playground/{app/front/build/admin.css → site/app/front/build/guest.css} +1 -1
- package/playground/{app → site/app}/front/build/guest.js +2 -1
- package/playground/{app → site/app}/front/build/root.css +1 -1
- package/playground/{app → site/app}/front/build/root.js +2 -1
- package/playground/{app → site/app}/front/build/user.css +1 -1
- package/playground/{app → site/app}/front/build/user.js +2 -1
- package/playground/{app → site/app}/front/build.env.js +0 -0
- package/playground/{app → site/app}/front/index.!.js +2 -0
- package/playground/{app → site/app}/front/index.admin.js +16 -14
- package/playground/{app → site/app}/front/index.client.js +16 -14
- package/playground/{app → site/app}/front/index.guest.js +16 -14
- package/playground/{app → site/app}/front/index.root.js +24 -22
- package/playground/{app → site/app}/front/index.user.js +16 -14
- package/playground/{app → site/app}/front/rollup.!.js +0 -0
- package/playground/{app → site/app}/front/rollup.admin.js +2 -2
- package/playground/{app/front/rollup.root.js → site/app/front/rollup.client.js} +2 -2
- package/playground/{app → site/app}/front/rollup.guest.js +2 -2
- package/playground/{app/front/rollup.client.js → site/app/front/rollup.root.js} +2 -2
- package/playground/{app → site/app}/front/rollup.user.js +2 -2
- package/playground/{app → site/app}/front/src/admin/main/index.js +0 -0
- package/playground/{app → site/app}/front/src/client/main/index.js +0 -0
- package/playground/{app → site/app}/front/src/common/index.js +1 -1
- package/playground/{app → site/app}/front/src/common/ncInit.js +0 -0
- package/playground/{app → site/app}/front/src/common/ws.client.main.js +0 -0
- package/playground/{app → site/app}/front/src/guest/main/index.js +0 -0
- package/playground/{app → site/app}/front/src/root/main/index.js +0 -0
- package/playground/{app → site/app}/front/src/user/main/index.js +0 -0
- package/playground/{app → site/app}/server/app.js +0 -0
- package/playground/site/app/server/config/common.json +126 -0
- package/playground/site/app/server/config/development.json +33 -0
- package/playground/{app → site/app}/server/config/production.json +1 -1
- package/playground/{app → site/app}/server/config/stage.json +1 -1
- package/playground/{app → site/app}/server/index.js +0 -0
- package/playground/{app → site/app}/server/routes/index.js +0 -0
- package/playground/{app → site/app}/server/routes/site.js +0 -0
- package/playground/{app → site/app}/server/views/admin/foot.pug +0 -0
- package/playground/{app → site/app}/server/views/admin/head.pug +0 -0
- package/playground/{app → site/app}/server/views/admin/menu.pug +0 -0
- package/playground/{app → site/app}/server/views/admin.pug +0 -0
- package/playground/{app → site/app}/server/views/dashboard.pug +0 -0
- package/playground/{app → site/app}/server/views/index.pug +0 -0
- package/playground/{app → site/app}/server/views/parts/header.android.pug +0 -0
- package/playground/{app → site/app}/server/views/parts/header.ios.pug +0 -0
- package/playground/{app → site/app}/server/views/parts/header.pug +0 -0
- package/playground/{app → site/app}/server/views/parts/menu.pug +0 -0
- package/playground/{app → site/app}/server/views/parts/overview.pug +0 -0
- package/playground/{app → site/app}/server/ws/auth.js +0 -0
- package/playground/{app → site/app}/server/ws/index.js +0 -0
- package/playground/{bin → site/bin}/build.sh +0 -0
- package/playground/{package.json → site/package.json} +0 -0
- package/playground/{project.manifest.json → site/project.manifest.json} +0 -0
- package/src/cli/const.mjs +9 -0
- package/src/cli/readers/debugPort.mjs +16 -0
- package/src/cli/readers/deploy.mjs +80 -0
- package/src/cli/readers/hostname.mjs +4 -5
- package/src/cli/readers/index.mjs +12 -0
- package/src/cli/readers/init_root_user.mjs +9 -8
- package/src/cli/readers/nginx.mjs +41 -0
- package/src/cli/readers/not_node_monitor.mjs +7 -4
- package/src/cli/readers/not_node_reporter.mjs +6 -3
- package/src/cli/readers/pm2.mjs +29 -0
- package/src/cli/readers/ssl.mjs +2 -1
- package/src/cli/readers/ws.mjs +6 -4
- package/src/cli/renderers/deploy.mjs +39 -0
- package/src/cli/renderers/index.mjs +9 -0
- package/src/cli/renderers/nginx.mjs +44 -0
- package/src/cli/renderers/pm2.mjs +42 -0
- package/tmpl/dirs/project.mjs +18 -0
- package/tmpl/dirs/server.mjs +4 -3
- package/tmpl/files/app/config/common.ejs +2 -4
- package/tmpl/files/project/deploy.ejs +13 -0
- package/tmpl/files/{app → project}/env.ejs +3 -3
- package/tmpl/files/project/nginx.ejs +63 -0
- package/tmpl/files/project/pm2.ejs +46 -0
- package/playground/app/server/config/common.json +0 -106
- package/playground/app/server/config/development.json +0 -34
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apps": [
|
|
3
|
+
{
|
|
4
|
+
"name": "not-node-application.stage",
|
|
5
|
+
"script": "./site/app/server/index.js",
|
|
6
|
+
"node_args": [
|
|
7
|
+
"--stack-trace-limit=50",
|
|
8
|
+
|
|
9
|
+
"--inspect=3002"
|
|
10
|
+
|
|
11
|
+
],
|
|
12
|
+
"watch": true,
|
|
13
|
+
"ignore_watch": [
|
|
14
|
+
"./site/node_modules",
|
|
15
|
+
"./site/docs",
|
|
16
|
+
"./site/app/static",
|
|
17
|
+
"./site/app/front/build",
|
|
18
|
+
"./db.dumps"
|
|
19
|
+
],
|
|
20
|
+
"exec_mode": "fork",
|
|
21
|
+
"env": {
|
|
22
|
+
"hostname": "https://stage.not-node-application",
|
|
23
|
+
"NODE_ENV": "stage",
|
|
24
|
+
|
|
25
|
+
"NOT_NODE_ERROR_KEY": "123456",
|
|
26
|
+
"NOT_NODE_ERROR_URL_NODE": "https://appmon.ru/api/key/collect",
|
|
27
|
+
"NOT_NODE_ERROR_URL_BROWSER": "https://appmon.ru/api/key/collect",
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
"NOT_NODE_MONITOR_INTERVAL": 5000,
|
|
31
|
+
"NOT_NODE_MONITOR_REPORT_INTERVAL": 60,
|
|
32
|
+
"NOT_NODE_MONITOR_REPORT_KEY": "123456",
|
|
33
|
+
"NOT_NODE_MONITOR_REPORT_URL": "https://appmon.ru/api/key/collect"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
"db__mongoose__uri": "mongodb://localhost/reporter?authSource=reporter",
|
|
37
|
+
"db__mongoose__options__host": "localhost",
|
|
38
|
+
"db__mongoose__options__user": "reporter",
|
|
39
|
+
"db__mongoose__options__pass": "developer",
|
|
40
|
+
"db__mongoose__options__db": "reporter",
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -52198,7 +52198,7 @@
|
|
|
52198
52198
|
//options for ws client here
|
|
52199
52199
|
main: {
|
|
52200
52200
|
host: window.location.hostname,
|
|
52201
|
-
port:
|
|
52201
|
+
port: 3001,
|
|
52202
52202
|
path: 'websocket',
|
|
52203
52203
|
secure: true,
|
|
52204
52204
|
ssl: false
|
|
@@ -52270,6 +52270,7 @@
|
|
|
52270
52270
|
manifest: manifest
|
|
52271
52271
|
});
|
|
52272
52272
|
|
|
52273
|
+
window.NOT_NODE_ERROR_URL_BROWSER = 'https://appmon.ru/api/key/collect';
|
|
52273
52274
|
const {
|
|
52274
52275
|
notCommon,
|
|
52275
52276
|
notApp,
|