Showing
1 changed file
with
7 additions
and
1 deletions
... | @@ -18,6 +18,7 @@ var httpsOptions = { | ... | @@ -18,6 +18,7 @@ var httpsOptions = { |
18 | http.createServer(app).listen(80); | 18 | http.createServer(app).listen(80); |
19 | https.createServer(httpsOptions, app).listen(443); | 19 | https.createServer(httpsOptions, app).listen(443); |
20 | */ | 20 | */ |
21 | +/* | ||
21 | const lex= require('greenlock-express').create({ | 22 | const lex= require('greenlock-express').create({ |
22 | version: 'draft-11', // 버전2 | 23 | version: 'draft-11', // 버전2 |
23 | store: require('greenlock-store-fs'), | 24 | store: require('greenlock-store-fs'), |
... | @@ -41,7 +42,7 @@ https.createServer(lex.httpsOptions, lex.middleware(app)).listen((process.env.SS | ... | @@ -41,7 +42,7 @@ https.createServer(lex.httpsOptions, lex.middleware(app)).listen((process.env.SS |
41 | http.createServer(lex.middleware(require('redirect-https')())).listen(process.env.PORT || 80,()=>{ | 42 | http.createServer(lex.middleware(require('redirect-https')())).listen(process.env.PORT || 80,()=>{ |
42 | console.log("server on 80"); | 43 | console.log("server on 80"); |
43 | }); | 44 | }); |
44 | - | 45 | +*/ |
45 | //papago api | 46 | //papago api |
46 | 47 | ||
47 | 48 | ||
... | @@ -175,7 +176,12 @@ function handleEvent(event) { | ... | @@ -175,7 +176,12 @@ function handleEvent(event) { |
175 | console.log("status code is not 200"); | 176 | console.log("status code is not 200"); |
176 | } | 177 | } |
177 | 178 | ||
179 | + | ||
180 | + | ||
178 | }); | 181 | }); |
179 | 182 | ||
180 | }); | 183 | }); |
181 | } | 184 | } |
185 | + app.listen(3000, function () { | ||
186 | + console.log('Linebot listening on port 3000!'); | ||
187 | +}); | ... | ... |
-
Please register or login to post a comment