도커 설치 내용 추가 밎 SQL 설정 버그 해결 및 영상 생성 front단 Timeout 제거

This commit is contained in:
Ubuntu committed 2025-12-17 06:42:11 +00:00
1 parent f5e7fba363
commit 9994944813
8 files changed
+911 -11

No files matched your search

+1 -1
View File
@@ -241,7 +241,7 @@ const ResultPlayer: React.FC<ResultPlayerProps> = ({ assets, onReset, autoPlay =
const pollJobStatus = async (jobId: string) => {
const token = localStorage.getItem('token');
let pollCount = 0;
const maxPolls = 180; // 최대 3분 (1초 간격)
const maxPolls = 600; // 최대 3분 (1초 간격)
const poll = async () => {
if (pollCount >= maxPolls) {
+874
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -50,6 +50,7 @@
"clsx": "^2.1.1",
"concurrently": "^9.2.1",
"postcss": "^8.5.6",
"puppeteer": "^24.33.0",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^3.4.18",
"tailwindcss-animate": "^1.0.7",
+1
View File
@@ -634,6 +634,7 @@ db.serialize(() => {
user_id INTEGER,
business_name TEXT,
details TEXT,
final_video_path TEXT,
createdAt DATETIME DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY(user_id) REFERENCES users(id)
)`);
+5 -2
View File
@@ -2154,8 +2154,9 @@ async function processRenderQueue() {
// Puppeteer 녹화
const browser = await puppeteer.launch({
executablePath: process.env.PUPPETEER_EXECUTABLE_PATH || '/usr/bin/google-chrome-stable',
headless: 'new',
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-web-security']
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-web-security','--disable-dev-shm-usage', '--disable-gpu']
});
const page = await browser.newPage();
@@ -2397,8 +2398,9 @@ app.post('/render', authenticateToken, async (req, res) => {
// 3. Puppeteer로 영상 녹화
const browser = await puppeteer.launch({
executablePath: process.env.PUPPETEER_EXECUTABLE_PATH || '/usr/bin/google-chrome-stable',
headless: 'new',
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-web-security']
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-web-security','--disable-dev-shm-usage', '--disable-gpu']
});
const page = await browser.newPage();
@@ -7726,6 +7728,7 @@ app.post('/api/admin/sync/pensions', authenticateToken, requireAdmin, async (req
// 모든 기타 요청은 React 앱으로 전달 (SPA 라우팅 지원)
app.get('*', (req, res) => {
console.log("unknown req : ", req)
res.sendFile(path.join(__dirname, '../dist/index.html'));
});
+1 -1
View File
@@ -60,7 +60,7 @@ const LibraryView: React.FC<LibraryViewProps> = ({
const [uploadPlatform, setUploadPlatform] = useState<'youtube' | 'instagram' | null>(null);
const filteredItems = items.filter(item =>
item.businessName.toLowerCase().includes(searchQuery.toLowerCase())
item.businessName?.toLowerCase().includes(searchQuery.toLowerCase())
);
// YouTube 업로드