[2021-03-02 화] TIL

노을·2021년 3월 2일
0

TIL

목록 보기
51/81

스프링부트가 무엇인지? 아니 어떻게 생긴건지 오늘 알아보았다.

스프링은?

  • 자바 엔터프라이즈 웹개발을 하는 프레임워크이다. (X)
  • 웹 프레임워크가 아니다.
  • 자바 객체지향 프레임워크다.
    • (비공식) 객체지향을 쉽게 할 수 있게 해주는 프로그래밍
    • (공식) 모든 사람들이 자바 프로그래밍을 빠르고 쉽게 안전하게 개발을 해준다.
    • 결국, 웹을 짜는 것이 아닌 모든 종류의 자바 프로그램을 더 쉽게 짜게 해주는 프레임워크이다.

Heroku 배포 하는법

1. 사이트에서 프로그램을 설치한다.

(.. 회원가입이라던가..git commit 과정이라던가.. 사이트에 너무 잘나와있어서 스킵)

2. heroku 저장소 만들기

  • 별도의 이름을 지정하지 않으면 랜덤으로 생성된다.
  • 추후 변경 가능.
$ heroku create

Creating app... done, ⬢ boiling-bayou-72867
https://boiling-bayou-72867.herokuapp.com/ | https://git.heroku.com/boiling-bayou-72867.git

3. hroku 저장소에 스프링부트 프로젝트를 PUSH한다.

  • 각종 의존성 파일들이 설치됨을 확인할 수 있다.
$ git push heroku master

Enumerating objects: 31, done.
Counting objects: 100% (31/31), done.
Delta compression using up to 8 threads
Compressing objects: 100% (21/21), done.
Writing objects: 100% (31/31), 335.35 KiB | 1.67 MiB/s, done.
Total 31 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> Gradle app detected
remote: -----> Spring Boot detected
remote: -----> Installing JDK 1.8... done
remote: -----> Building Gradle app...
remote: -----> executing ./gradlew build -x check
remote:        Downloading https://services.gradle.org/distributions/gradle-6.8.2-bin.zip
remote:        ..........10%..........20%..........30%...........40%..........50%..........60%..........70%...........80%..........90%..........100%
remote:        To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.grremote:        > Task :compileJava
remote:        > Task :bootJarMainClassName
remote:        > Task :jar SKIPPED
remote:        > Task :assemble
remote:
remote:        Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
remote:        Use '--warning-mode all' to show the individual deprecation warnings.
remote:        See https://docs.gradle.org/6.8.2/userguide/command_line_interface.html#sec:command_line_warnings
remote:
remote:        BUILD SUCCESSFUL in 36s
remote:        4 actionable tasks: 4 executed
remote: -----> Discovering process types
remote:        Procfile declares types     -> (none)
remote:        Default types for buildpack -> web
remote:
remote: -----> Compressing...
remote:        Done: 69.9M
remote: -----> Launching...
remote:        Released v3
remote:        https://boiling-bayou-72867.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/boiling-bayou-72867.git

- https://firstsan1.herokuapp.com/

Heroku 저장소 이름을 바꾸고 싶을 때

정적파일(html,css) 자동으로 빌드 하는법

Reivew

  • 템플릿 엔진 중 mustache 기본 문법 공부 하던 중 예전에 자바스크립트에서 배운 템플릿 리터럴과 햇갈려서 실수를 했었다ㅋㅋㅋ {{variable}} 너무 이상하게 생겼어..
  • heroku라고 하는 곳에 처음으로 배포 라는 것을 해보았다.. 예전부터 멋있는 단어라고 생각해서 한번쯤 나도 해보고싶었는데 드디어 했다 ㅎㅎ (게임서버를 내가 예전에 운영했던거나 비슷한 방식인 것 같다.)
  • 오늘 미션보다, 인텔리제이의 코드가 변경되면 웹 상에서 자동으로 리로딩 되는법을 어떻게 하는지 찾아보는데 많은시간을 썼는데 그렇게 썩 유의미한 결과를 얻지는 못했다.
profile
카르페디엠

0개의 댓글