728x90
반응형
https://www.youtube.com/watch?v=SGGebq48h3Y 참고 조코딩 영상
배포(Deploy)의 개념
무료 배포 사이트 [클라우드 타입] https://cloudtype.io/
클라우드 타입 사용방법
깃허브로 가입&로그인 후
깃 허브 저장소는 미리 만들어줘야하고,
애플리케이션은 노드의 버전을 확인하는데
터미널에서 node -v 를 입력하면 버전이 확인 됨
배포하기를 누른후에 설정에서
아래와 같이 설정해야함
Start Command = node index.js
Install Command = npm ci --production [패키지 락에 있는 정보를 기반으로 설치]
완료되면 도메인으로 접속가능
.
완성
https://port-0-node-animal-sound-883524lbrr4u1h.gksl2.cloudtype.app/
https://port-0-node-animal-sound-883524lbrr4u1h.gksl2.cloudtype.app/sound/cat
https://port-0-node-animal-sound-883524lbrr4u1h.gksl2.cloudtype.app/
port-0-node-animal-sound-883524lbrr4u1h.gksl2.cloudtype.app
728x90
반응형
'코딩공부 > Node.js' 카테고리의 다른 글
req.query , req.params, req.body, res.json (0) | 2022.12.20 |
---|---|
웹개발 5주 완성 5주차 - DB, CRUD (조코딩) (0) | 2022.12.19 |
조코딩 한시간만에 Node.js 백엔드 기초 끝내기 (ft. API 구축) (2) | 2022.12.16 |
노드js 입문(04. Express.js) (0) | 2022.12.14 |
노드js 입문(03. Package Manager) (0) | 2022.12.13 |