Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(api): entrypoint
Gergő Móriczc6a83ab92cc6
diff --git a/apps/api/Dockerfile b/apps/api/Dockerfileindex 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/srcEXPOSE 8080ENV 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 filediff --git a/apps/api/docker-entrypoint.sh b/apps/api/docker-entrypoint.shindex 21122b06a..269e982f9 100755--- a/apps/api/docker-entrypoint.sh+++ b/apps/api/docker-entrypoint.sh@@ -7,12 +7,13 @@ elseecho ENTRYPOINT DID NOT RUN AS ROOTfi-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.jselse- echo "NO FLY PROCESS GROUP, RUNNING app BY DEFAULT"+ echo "NO FLY PROCESS GROUP"node --max-old-space-size=8192 dist/src/index.jsfi-