初始化提交
This commit is contained in:
13
static-server/server.js
Normal file
13
static-server/server.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const StaticServer = require('./static-server.js');
|
||||
const SSLStaticServer = require('./static-sslserver.js');
|
||||
|
||||
const init = () => {
|
||||
StaticServer.run('7000');
|
||||
SSLStaticServer.run('8000');
|
||||
}
|
||||
|
||||
if (!module.parent) {
|
||||
init();
|
||||
} else {
|
||||
module.exports = init;
|
||||
}
|
||||
Reference in New Issue
Block a user