From a5496b8dd5768de8fcaeebcffaf599ef16feb02f Mon Sep 17 00:00:00 2001 From: yoon Date: Sun, 12 Jun 2022 23:44:04 +0900 Subject: [PATCH] [AWS]#18 -test3 --- app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index d6457d19..f8d379c2 100644 --- a/app.js +++ b/app.js @@ -96,11 +96,15 @@ async function readImageFile(file){ //서버 실행 //각자 ip주소 넣기, port: 3006 변경 금지! //학교: 172.18.9.151 집: 172.30.1.25 +/* app.listen(3006, '34.64.86.124', (err)=> { if(!err) { console.log('server start'); } -}) +})*/ +app.listen(app.get('port'), ()=>{ + console.log(app.get('port'), '번 포트에서 대기중'); +}); //앱 로그인 app.post('/login', function(req, res) {