Skip to content

Commit

Permalink
✏️ [FIX] code 파일이 생성되지 않는 오류 수정
Browse files Browse the repository at this point in the history
로컬에 파일을 저장했던 코드를 다시 수정하여 배포 서버에서 파일이 생성되게 한다.
  • Loading branch information
aj4941 committed Oct 17, 2023
1 parent ff131ea commit 15be5f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ FROM openjdk:17-oracle
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar

COPY temp.cpp /codes/temp.cpp
COPY temp.py /codes/temp.py
COPY Main.java /codes/Main.java

ENTRYPOINT ["java","-jar","/app.jar"]

Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public String generateKey(Tests test, int problemNumber, String language) {
@PostConstruct
public void initTempCodeInitializer() {
languages = List.of("Python", "Cpp", "Java");
String pythonCode = readCodeFromFile("src/main/resources/codes/temp.py");
String cppCode = readCodeFromFile("src/main/resources/codes/temp.cpp");
String javaCode = readCodeFromFile("src/main/resources/codes/temp.java");
String pythonCode = readCodeFromFile("codes/temp.py");
String cppCode = readCodeFromFile("codes/temp.cpp");
String javaCode = readCodeFromFile("codes/Main.java");
codeLists = List.of(pythonCode, cppCode, javaCode);
}

Expand Down

0 comments on commit 15be5f0

Please sign in to comment.