728x90
반응형
SMALL
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
APPLICATION FAILED TO START
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (the profiles dev are currently active).
서버에 서브모듈을 설정해도 연결이 되지 않는 문제가 있었다 서브모듈을 분명 설정해줬는데 어디가 잘못 된걸까 고민하던 찰나 gradle.yml에 설정한 내 코드를 보니 git submodule update --init -recursive
로 설정되어 있는 것을 볼 수 있었다. 명령어가 분명 저거 말고도 하나 더 있었던 것 같아 shell 의 history를 보니 git submodule update --remote
라는 명령어를 찾을 수 있었다.
두 명령어의 차이
git submodule update --init -recursive
은 로컬에서 업데이트된 내용을 찾아서 가져오는 명령어git submodule update --remote
은 원격에서 가장 최신의 업데이트된 내용을 찾아서 가져오는 명령어였다.
성공한 gradle 구문
아래와같이 설정했더니 성공적으로 배포가 되었고 설정파일을 가져올 수 있었다. 하지만 서브모듈로 가져오는 yml이라도 디버깅을 통해 내부 코드가 노출될 위험이 있기에 이후 보완하는 구문을 추가하기로 했다.
jobs:
CI-CD:
runs-on: ubuntu-latest
steps:
# 1️⃣ 코드 체크아웃 (서브모듈 포함)
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.ACTION_TOKEN }}
submodules: recursive
# 2️⃣ 서브모듈 업데이트
- name: Update git submodules
run: git submodule update --remote
728x90
반응형
SMALL
'AWS' 카테고리의 다른 글
[Docker] Sudo 없이 명령어 입력하기 (0) | 2025.02.26 |
---|---|
[S3] AWS에서 S3에 대한 권한을 차단했을때 해결방법 , Your AWS Access Key is Exposed for AWS (0) | 2025.02.22 |
[Git Actions / Docker ] SpringBoot CI/CD 파이프라인 개설하기 (1) | 2025.02.06 |
[Docker/ MySQL설치] Docker를 사용하여 MySQL 설치하기 (0) | 2025.02.05 |
[EC2 / Docker 설치하기] Docker ubuntu환경에서 설치하는 법 (0) | 2025.02.05 |