Skip to content

Commit

Permalink
๐Ÿšจ [Fix] deploy file ์œ„์น˜ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
๊น€ํ˜œ์ง„ authored and ๊น€ํ˜œ์ง„ committed Sep 20, 2024
1 parent 3916ce2 commit ea89ce2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
import com.server.pnd.report.dto.ReportDetailDto;
import com.server.pnd.report.repository.ReportRepository;
import com.server.pnd.s3.config.S3Config;
import com.server.pnd.user.repository.UserRepository;
import com.server.pnd.util.response.CustomApiResponse;
import com.server.pnd.s3.service.S3Service;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import java.util.List;
import java.util.ArrayList;
import java.io.*;
Expand Down Expand Up @@ -113,9 +111,9 @@ public ResponseEntity<CustomApiResponse<?>> createReport(Long repoId) {

// file ๊ฐ€์ ธ์˜ค๊ธฐ
// local
// File file = new File("./src/main/resources/profile-3d-contrib/" + svgFileName);
File file = new File("./src/main/resources/profile-3d-contrib/" + svgFileName);
// deploy
File file = new File("../../src/main/resources/profile-3d-contrib/" + svgFileName);
// File file = new File("../../src/main/resources/profile-3d-contrib/" + svgFileName);

// S3์— ํŒŒ์ผ ์—…๋กœ๋“œ & ํŒŒ์ผ(์‚ฌ์ง„) ๋งํฌ ์ €์žฅ
imageUrl[i] = s3Service.upload(file, username, svgFileName);
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/scripts/3d-contrib/src/file-writer.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { mkdirSync, writeFileSync } from 'fs';
// local
// export const OUTPUT_FOLDER = './src/main/resources/profile-3d-contrib';
export const OUTPUT_FOLDER = './src/main/resources/profile-3d-contrib';
// deploy
export const OUTPUT_FOLDER = '../../src/main/resources/profile-3d-contrib';
// export const OUTPUT_FOLDER = '../../src/main/resources/profile-3d-contrib';


// ํŒŒ์ผ ์ €์žฅ ์œ„์น˜ ์„ค์ •
Expand Down

0 comments on commit ea89ce2

Please sign in to comment.