개발일지/팀GC
06/30 작업내용
박준희
2021. 6. 30. 18:23
jwt토큰 테스트
카페24 node.js 서버 작동 안됨
로컬에서는 작동되나 카페24에 호스팅하면 작동되지 않음
TypeError: OAuth2Strategy requires a clientID option
at Strategy.OAuth2Strategy (/home/hosting_users/hijun1/apps/hijun1_teamgctest/node_modules/passport-oauth2/lib/strategy.js:83:34)
at new Strategy (/home/hosting_users/hijun1/apps/hijun1_teamgctest/node_modules/passport-kakao/dist/Strategy.js:33:31)
at Object.<anonymous> (/home/hosting_users/hijun1/apps/hijun1_teamgctest/web.js:21:3)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
at internal/main/run_main_module.js:17:11
검색해보니 cafe24는 dotenv를 사용하지 못하는 것 같음
https://honeystorage.tistory.com/53
cafe24 node.js 호스팅 3개월 사용후기
지난 3개월 동안 cafe24의 node.js호스팅을 사용하며 느낀 점들을 소개할까 합니다. 장단점이 있었습니다. 1. 장점 - 가벼운 홈페이지 운영정도를 생각한다면 저렴한 가격으로 구축 가능하다는 것
honeystorage.tistory.com
dotenv사용하지 않고 문자열로 바로 넣으니 작동 됌