AIVE 홈페이지(html)를 바이브코딩으로 개발했는데, 이를 기존에 사용하던 aws lightsail 에서 배포하려고 한다.
연결하려는 url : https://www.aible.site/home/
<html 파일을 aws lightsail 서버에 올리기>
@ 파일질라에서 vive 사이트 접속 후 html 파일 옮기기
로컬 : C:\Users\runia\Desktop\Aive\homepage\aive_homepage_develop\aive_homepage_v1\aive_homepage.html
aws :
/home/ec2-user/aive_home_fe/index.html
<기존에 사용하던 aws 서버의 nginx.conf 수정>
# aws 서버 접속
로컬 터미널) cd C:\Users\runia\Desktop\DeployProject
ssh ec2-user@43.202.0.119 -i ./Vive_LightsailDefaultKey-ap-northeast-2.pem
# aws 서버에 nginx.conf 수정
sudo vim /etc/nginx/nginx.conf
-> (원래 그대로) aible.site 로 요청이 들어오면 vive_pptgen_fe/build 디렉토리의 index.html 을 실행하라
-> (추가된 내용) aible.site/home/ 으로 요청이 들어오면 aive_home_fe 디렉토리의 index.html 을 실행하라
( /home 으로 들어오면 리다이렉트로 /home/ 실행 )
sudo systemctl restart nginx
@ 나중에 aive 도메인을 새로 사서 홈페이지 url을 연결해야 함.
# 현재는 도메인이 애매한 상태(임시로 aible.site 도메인을 사용해서 연결해놓음)
# 나중에 AIVE 가비아 도메인 사서 다시 해보기 (aive.my 구매 해놓은 상태)
'AWS' 카테고리의 다른 글
[AWS 배포-4] 4. 깃허브 액션(AWS 자동 배포) + https 인증서 발급받기 (2) | 2025.08.28 |
---|---|
[AWS 배포-3] 3. 바이브코딩 ppt 생성기 AWS Lightsail 배포하기 (2) | 2025.08.20 |
[AWS 배포-2] 2. react 프론트엔드 코드 AWS Lightsail 배포 (0) | 2025.08.14 |
[AWS 배포-1] 1. pptgen 백엔드 코드 깃허브 올리고 aws lightsail 배포까지 (3) | 2025.08.08 |
AWS 서비스 종료(AWS Service termination) (0) | 2020.06.25 |