오늘은 주제의 마지막인 [인텔리J+Gradle+SpringBoot2개발 배포_9]을 진행 하였습니다.
-기술참조 http://wonwoo.ml/index.php/post/1328
기타정보: 스프링부트 1.x에서 -> 2.x으로 버전업 시 OAuth2 사용.(작업사이트의 회원가입이 필요없음)
- Free클라우드 Heroku 에서 App생성 화면(아래)
Download and install the Heroku CLI.
If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
$ heroku login
- 명령창에서 Heroku 외부 브라우저로 로그인 호출 화면(아래)
$ git init $ heroku git:remote -a blogpost(헤로쿠에 리모트 레포지토리 생성 이름지정)
Make some changes to the code you just cloned and deploy them to Heroku using Git.
$ git add . $ git commit -am "make it better" $ git push heroku master
-배포결과OK 화면(아래)
- 도메인 접속 테스트 OK 화면(아래) https://blogboot.herokuapp.com/
- 소스는 바로 이전 포스트와 동일(변경없음) http://blog.daum.net/web_design/639
Ps1. OAuth2 사용하지 않고, DB인증을 사용한(사이트에 회원가입이 있음) 스프링부트는
- 이전 포스트( http://blog.daum.net/web_design/630 )에 있음.
- 이전의 포스트에서 DB인증을 사용한 배포결과: https://memberboot.herokuapp.com/
Ps2. 헤로쿠클라우드의 리모트 레포지토리 소스 PC로
Use Git to clone blogboot's source code to your local machine.
$ heroku git:clone -a blogboot (헤로쿠에서 생성한 레포지토리 이름) $ cd blogboot
댓글 영역