Mbonea commited on
Commit
4aa0fd7
1 Parent(s): 3ff4b82
Dockerfile CHANGED
@@ -39,9 +39,9 @@ ADD https://github.com/porjo/youtubeuploader/releases/download/23.06/youtubeuplo
39
 
40
  # Create youtube directory and extract youtubeuploader there
41
  RUN mkdir -p /srv/youtube && \
42
- tar -zxvf youtubeuploader.tar.gz -C /srv/youtube && \
43
- rm youtubeuploader.tar.gz && \
44
- chmod +x /srv/youtube/youtubeuploader
45
 
46
 
47
  # Copy the application code
@@ -79,7 +79,8 @@ RUN pipx install unsilence
79
 
80
 
81
  # Command to run the application
82
- CMD python -m uvicorn App.app:app --host 0.0.0.0 --port 7860
 
83
 
84
  # CMD python -m uvicorn App.app:app --host 0.0.0.0 --port 7860 --workers 2
85
 
 
39
 
40
  # Create youtube directory and extract youtubeuploader there
41
  RUN mkdir -p /srv/youtube && \
42
+ tar -zxvf youtubeuploader.tar.gz -C /srv/youtube && \
43
+ rm youtubeuploader.tar.gz && \
44
+ chmod +x /srv/youtube/youtubeuploader
45
 
46
 
47
  # Copy the application code
 
79
 
80
 
81
  # Command to run the application
82
+ CMD python -m uvicorn App.app:app --host 0.0.0.0 --port 7860 & python -m celery -A App.Worker.celery worker -c 5 --max-tasks-per-child=1 --without-heartbeat
83
+
84
 
85
  # CMD python -m uvicorn App.app:app --host 0.0.0.0 --port 7860 --workers 2
86
 
Remotion-app/package.json CHANGED
@@ -4,7 +4,7 @@
4
  "description": "My Remotion video",
5
  "scripts": {
6
  "start": "remotion studio",
7
- "build": "remotion render HelloWorld out/video.mp4",
8
  "upgrade": "remotion upgrade",
9
  "test": "eslint src --ext ts,tsx,js,jsx"
10
  },
 
4
  "description": "My Remotion video",
5
  "scripts": {
6
  "start": "remotion studio",
7
+ "build": "node --max-old-space-size=8192 ./node_modules/.bin/remotion render HelloWorld out/video.mp4"
8
  "upgrade": "remotion upgrade",
9
  "test": "eslint src --ext ts,tsx,js,jsx"
10
  },
Remotion-app/src/HelloWorld/VideoStream.jsx CHANGED
@@ -3,6 +3,8 @@ import React from 'react';
3
  import {Video, staticFile, useVideoConfig} from 'remotion';
4
  import videoSequences from './Assets/VideoSequences.json';
5
  import {TransitionSeries} from '@remotion/transitions';
 
 
6
  export default function VideoStream() {
7
  const {fps} = useVideoConfig();
8
  return (
 
3
  import {Video, staticFile, useVideoConfig} from 'remotion';
4
  import videoSequences from './Assets/VideoSequences.json';
5
  import {TransitionSeries} from '@remotion/transitions';
6
+
7
+
8
  export default function VideoStream() {
9
  const {fps} = useVideoConfig();
10
  return (