diff --git a/Dockerfile b/Dockerfile index ded4065..fe439d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,9 @@ COPY --from=deps /app/node_modules ./node_modules COPY . . # This will do the trick, use the corresponding env file for each environment. COPY .env.local .env.production +# Add assetlinks.json to the .well-known directory in the public folder +RUN mkdir -p public/.well-known +COPY assetlinks.json public/.well-known/assetlinks.json RUN npm run build # 3. Production image, copy all the files and run next @@ -49,4 +52,4 @@ EXPOSE 3000 ENV PORT=3000 -CMD HOSTNAME=0.0.0.0 node server.js \ No newline at end of file +CMD HOSTNAME=0.0.0.0 node server.js diff --git a/app/api/record/start/route.ts b/app/api/record/start/route.ts index b949209..4d75896 100644 --- a/app/api/record/start/route.ts +++ b/app/api/record/start/route.ts @@ -88,6 +88,7 @@ async function post_runner(url: string, token: string, filepath: string) { month: 'long', day: 'numeric', }); + console.log('post to runner:', filepath); try { await fetch(url, { method: 'POST', @@ -102,3 +103,9 @@ async function post_runner(url: string, token: string, filepath: string) { console.error(e); } } + +/* + +02d4b00864dad8e3343909d092a97d33c87989fbe4591758ca5f6b648f018876b0:02736e7dad83d7205826649fc17db672ce08f8e87a2b47c7785ccbf79f24e91db0:1099586076673 + +*/ diff --git a/prod.yaml b/prod.yaml index da51257..9ef7158 100644 --- a/prod.yaml +++ b/prod.yaml @@ -14,17 +14,17 @@ services: - livekit livekit: - image: sphinx-livekit:latest + build: + context: . restart: on-failure + command: ["node", "server.js"] container_name: livekit.sphinx + environment: + - HOSTNAME=0.0.0.0 ports: - 3000:3000 volumes: caddy: - - - -