Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(api): entrypoint

Gergő Móriczc6a83ab92cc6
diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile
index 50cae45a6..22aa995cb 100644
--- a/apps/api/Dockerfile
+++ b/apps/api/Dockerfile
@@ -39,4 +39,4 @@ COPY --from=go-base /app/src/lib/go-html-to-md/html-to-markdown.so /app/dist/src
EXPOSE 8080
ENV PUPPETEER_EXECUTABLE_PATH="/usr/bin/chromium"
-# ENTRYPOINT "/app/docker-entrypoint.sh"
\ No newline at end of file
+ENTRYPOINT "/app/docker-entrypoint.sh"
\ No newline at end of file
diff --git a/apps/api/docker-entrypoint.sh b/apps/api/docker-entrypoint.sh
index 21122b06a..269e982f9 100755
--- a/apps/api/docker-entrypoint.sh
+++ b/apps/api/docker-entrypoint.sh
@@ -7,12 +7,13 @@ else
echo ENTRYPOINT DID NOT RUN AS ROOT
fi
-if [ $FLY_PROCESS_GROUP -eq "app" ]; then
+if [ $FLY_PROCESS_GROUP = "app" ]; then
+ echo "RUNNING app"
node --max-old-space-size=8192 dist/src/index.js
-elif [ $FLY_PROCESS_GROUP -eq "worker" ]; then
+elif [ $FLY_PROCESS_GROUP = "worker" ]; then
+ echo "RUNNING worker"
node --max-old-space-size=8192 dist/src/services/queue-worker.js
else
- echo "NO FLY PROCESS GROUP, RUNNING app BY DEFAULT"
+ echo "NO FLY PROCESS GROUP"
node --max-old-space-size=8192 dist/src/index.js
fi
-