Chaeyeon0 / GreenDay_Study

μ—¬μ€κ°œμ˜ 곡뢀 일지
0 stars 0 forks source link

[20240517] ec2 spring boot 배포 였λ₯˜ #3

Closed pu2rile closed 1 month ago

pu2rile commented 1 month ago

πŸ’₯이슈 μ„€λͺ…

μš°λΆ„νˆ¬ 접속 ν›„ κΉƒ 클둠 ν•˜κ³  κΉƒ 폴더에 λΉŒλ“œ 파일 μƒμ„±κΉŒμ§€ μ™„λ£Œλ˜μ—ˆμ§€λ§Œ λ°μ΄ν„°λ² μ΄μŠ€ μ„€μ • λˆ„λ½(μ—λŸ¬ λ©”μ‹œμ§€ 해석)으둜 λΉŒλ“œ μ‹€νŒ¨κ°€ λ–΄μŠ΅λ‹ˆλ‹€... ν•˜......................

πŸ“šν•  일 λͺ©λ‘

- [ ] λ°μ΄ν„°λ² μ΄μŠ€ λ“œλΌμ΄λ²„ μ˜μ‘΄μ„± μΆ”κ°€:
build.gradle νŒŒμΌμ— λ°μ΄ν„°λ² μ΄μŠ€ λ“œλΌμ΄λ²„ μ˜μ‘΄μ„±μ΄ μΆ”κ°€λ˜μ–΄ μžˆλŠ”μ§€ 확인
```groovy
dependencies {
    implementation 'mysql:mysql-connector-java'
}

그런 λ‹€μŒ, gradle build λͺ…령을 λ‹€μ‹œ μ‹€ν–‰ν•˜μ—¬ μ˜μ‘΄μ„±μ„ λ‹€μš΄λ‘œλ“œ

전체 κ³Όμ • μ˜ˆμ‹œ

  1. application.properties 파일 μ„€μ •:
    spring.datasource.url=jdbc:mysql://localhost:3306/greendaydb
    spring.datasource.username=greendayuser
    spring.datasource.password=greendaypassword
    spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  2. build.gradle 파일 μˆ˜μ •:
    dependencies {
    implementation 'mysql:mysql-connector-java'
    // λ‹€λ₯Έ μ˜μ‘΄μ„±λ“€...
    }
  3. Gradle λΉŒλ“œ:
    ./gradlew build
  4. μ• ν”Œλ¦¬μΌ€μ΄μ…˜ μ‹€ν–‰:
    java -jar green_day_history-0.0.1-SNAPSHOT.jar

πŸ‘€μ°Έκ³  사항

βŒ›κΈ°ν•œ

~5/19

khw010419 commented 1 month ago

계속 μˆ˜μ •ν•˜κ³  또 μˆ˜μ •ν•˜κ³  또 μˆ˜μ •ν•˜λŠ” λ””λΉ„μ˜μ‚Ά...

Chaeyeon0 commented 1 month ago

μ°Έκ³  사항 ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€ ! 저도 문제 ν•΄κ²°ν•˜λŠ” 것에 도움이 λ˜λ„λ‘ ν•˜κ² μŠ΅λ‹ˆλ‹€ !! ν™”μ΄νŒ…μ΄μ—μš” πŸ’Ÿ

janghw0126 commented 1 month ago

ec2둜 λ°°ν¬ν•˜λŠ” κ±° μ§„μ§œ 쉽지 μ•Šκ΅°μš”.. 저도 이 λΆ€λΆ„μ—μ„œ μ™œ 였λ₯˜κ°€ 생긴건지 ν•œλ²ˆ μ•Œμ•„λ³΄λ„λ‘ ν•˜κ² μŠ΅λ‹ˆλ‹€ ! ν™”μ΄νŒ…μ΄μ—¬μš©...😭

aranlll commented 1 month ago

μš°μ™• .... μ§„μ§œ μ—„μ²­ λ¨Έκ°€ λ§Žκ΅°μš” ... ν™”μ΄νŒ…μ΄μ—μš© ..!!! μ–Έλ‹Œ ν• μˆ˜ μž‡μ„œμš” !!! πŸ‘πŸ‘