개발 짜투리

Sirius·2025년 9월 12일

프로젝트

목록 보기
6/8

MySql 연결

  • MySql Command Line Client (create database devmate)

image.png

image.png

  • application.yml을 통해 Springboot와 MySql 서버 연결

image.png

GitHub & Intellij 연동

  • 인텔리제이
    • VCS → Enable Version Control Integration
    • 터미널 → git remote add origin https://github.com/USERNAME/REPO.git
      • git add .

      • git commit -m "Initial commit: Spring Boot project"

      • git branch -M main # 브랜치를 main으로 변경 (GitHub 기본 브랜치와 맞춤)
        git push -u origin main

      • git push origin --delete master

        • main branch에 readme.md 파일 등이 만들어져 있다면
          • git fetch origin
          • git pull --rebase origin main
          • git push -u origin main
        • CRLF를 LF로 변경
          • git config --global core.autocrlf true

YAML 파일을 통한 OAuth 키 관리 yaml 정리 필요

image.png

  • environment setting -local , mac intellij java env var
  • annotation processor
  • docker desktop → run → pull redis image → and run
  • s3, 배포 url 구축

profile

edit configuration → add Vm Options →

-Dspring.profiles.active=local

EC2 ubuntu 접속 & RDS MySql 접속

ssh -i devmate.pem ubuntu@<EC2퍼블릭IP>

mysql -h <RDS엔드포인트>(http://database-devmate.c1smsm2i83cp.ap-northeast-2.rds.amazonaws.com/) -u admin -p

0개의 댓글