반응형 IT업계에서 일하는 하는 윤뎁's log438 websocket connection to failed unexpected response code 503 io.configure(function () { io.set("transports", ["xhr-polling"]); io.set("polling duration", 10); }); .js 파일에 삽입한다. 2013. 10. 30. [ node.js ] XMLHttpRequest cannot load 에러 발생 시 io.configure(function () { io.set("transports", ["xhr-polling"]); io.set("polling duration", 10); }); 스크립트를 .js 파일에 넣어줘야함. 그리고 client page의 connect에 연결되는 도메인 주소를 확인. 2013. 10. 30. heroku에 새로운 application 생성 부터 deploy 까지 1. github에 새로운 repository를 만든다2. 새로운 repository에서 git bash3. heroku apps:create application명4. git remote –v 5. git push heroku master https://devcenter.heroku.com/articles/creating-appshttps://devcenter.heroku.com/articles/git 2013. 10. 30. Heroku와 Mysql, node.js Heroku와 Mysql (워드문서를 다운 받아서 보면 그림과 함께 볼 수 있습니다.) Heroku에 Add-ons에 보면 ClearDB Mysql Database, Amazon RD가 있다.1. ClearDB를 add함. 2. database를 클릭 Database관리는 Mysql workbench와 같은 Mysql GUI Tool을 사용해야 한다. 3. Endpoint Information을 선택함. heroku_e4b18fa76539562는 DB명.username, password가 나와 있음.server host 는 us-cdbr-east-04.cleardb.com이다4. 돌고래 로그인 . 5. DB 선택 6. catalogs에서 DB 선택 후 create table버튼을 눌러 테이블을 만들어도 .. 2013. 10. 25. node.js connector 모듈 간략한 설명 Node.js Connector 모듈http모듈에 여러 기능을 추가 하여 쉽게 사용할 수 있게 만든 모듈Express모듈에 기반이 되는 모듈 Connector 모듈 미들웨어looger : 로그 정보 출력csrf : CSRF 보안을 수행basicAuth : 기본적인 인증을 수행bodyParser : post 요청 매개 변수를 추출 cookieParser : 쿠키를 분해session : 세션 처리를 수행compiler : 커피스크립트, Sass, Less 컴파일러를 설정methodOverride : 다양한 요청 방식을 수행할 수 있게 합니다.responseTime : 응답 시간을 계산router : 페이지 라우트를 수행staticCache : Static 미들웨어를 위한 메모리 캐시 층을 생성함.static.. 2013. 10. 25. 이전 1 ··· 26 27 28 29 30 31 32 ··· 88 다음 반응형