ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [aws4] ec2에 프로젝트 배포
    카테고리 없음 2023. 1. 17. 14:03

    <git설치 및 clone>

    $ sudo apt-get install git
    $ git --version
    
    $ mkdir ~/app && mkdir ~/app/oldclothes
    $ cd ~/app/oldclothes
    
    $ git clone 레포지토리주소
    $ cd 프로젝트명
    $ ll           (gradle, build.gradle, settings.gradle 등 파일 목록 확인)
    
    chmod +x gradlew

     

     

    <배포 스크립트 만들기>

    $ vim ~/app/oldclothes/deploy.sh

     

     

    $ chmod +x ./deploy.sh
    $ chmod +x gradlew
    $ ./deploy.sh
    $ tail -f nohup.out   (로그확인)

     

    브라우저 url에

    http://본인아이피(퍼블릭 ip주소):8088/ 접속

     

     

    $ git fetch --all
    $ git reset --hard origin/howheonot

     

Designed by Tistory.