vk-ssl-auto-deploy 0.7.3 → 0.8.0
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/app.js +2 -3
- package/config.json +1 -1
- package/package.json +1 -1
- package/routes/cert.js +1 -8
package/app.js
CHANGED
|
@@ -58,6 +58,5 @@ server.listen(port, host, () => {
|
|
|
58
58
|
console.log('管理后台地址: http://' + (host === '0.0.0.0' ? 'localhost' : host) + ':' + port + '/admin');
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
//
|
|
62
|
-
module.exports = app;
|
|
63
|
-
module.exports.broadcastLog = broadcastLog;
|
|
61
|
+
// 导出应用
|
|
62
|
+
module.exports = app;
|
package/config.json
CHANGED
package/package.json
CHANGED
package/routes/cert.js
CHANGED
|
@@ -12,14 +12,7 @@ const chalk = require('chalk');
|
|
|
12
12
|
const execAsync = promisify(exec);
|
|
13
13
|
|
|
14
14
|
// 获取广播函数
|
|
15
|
-
|
|
16
|
-
try {
|
|
17
|
-
const app = require('../app');
|
|
18
|
-
broadcastLog = app.broadcastLog;
|
|
19
|
-
} catch (error) {
|
|
20
|
-
// 如果获取失败,使用空函数
|
|
21
|
-
broadcastLog = () => {};
|
|
22
|
-
}
|
|
15
|
+
const { broadcastLog } = require('../utils/websocket');
|
|
23
16
|
|
|
24
17
|
// 配置文件路径
|
|
25
18
|
const CONFIG_FILE = path.join(__dirname, '..', 'config.json');
|