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 구매 해놓은 상태)

 

+ Recent posts