- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.https.js
More file actions
Latest commit
30 lines (22 loc) · 633 Bytes
/
Copy pathindex.https.js
File metadata and controls
30 lines (22 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env node
'use strict';
require('babel-register')(
{
"plugins": [
["transform-runtime",{
"regenerator": true
}]
]
});
varhttps=require('https');
varhttp=require('http');
vardebug=require('debug')('server')
varserver_config=require('./server/server.dev.config').default;
constapp=require('./server');
varhttpsServer=https.createServer(server_config.ssl_cert_credentials,app);
httpsServer.listen(443,function(){
debug('HTTPS server starting, listening on 443');
});
http.createServer(app).listen(80,function(){
debug('HTTP server starting, listening on 80');
});