1)
클라우드
서버배포 heroku
lamp-shopping-server
index.js -> index_node.js
server.js -> index.js
index.js 에서 port 변경
git add .
git commit -m "서버 배포 준비 완료"
git push
회원가입 ->
Cloud Application Platform | Heroku
Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud.
www.heroku.com
로그인 후 -> create new app
Heroku CLI. 설치->
deploy->
react 배포 vercel
lamp-shopping-client
lamp-shopping-server
imageUrl 주소 변경
imageUrl: "https://lamp-shopping-server-zoaseo.herokuapp.com/"+file.destination+file.filename
다시 헤로쿠 배포
lamp-shopping-client
git 배포
Develop. Preview. Ship. For the best frontend teams – Vercel
Deploy web projects with the best frontend developer experience and highest end-user performance.
vercel.com
로그인->
https://lamp-shopping-client-blond.vercel.app/
React App
lamp-shopping-client-blond.vercel.app
'노력이 좋아서' 카테고리의 다른 글
<step74>'php_도서목록,등록,상세보기_복습' (0) | 2022.07.06 |
---|---|
<step73>'react_hook-react_useCallback/useMemo' (0) | 2022.07.05 |
<step72>'react_shoppingmall홈페이지 구현_step7' (0) | 2022.07.04 |
<step72>'react_shoppingmall홈페이지 구현_step6' (0) | 2022.07.04 |
<step72>'react_shoppingmall홈페이지 구현_step5' (0) | 2022.07.04 |