mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
fix(api): entrypoint
This commit is contained in:
parent
e44bdf7a54
commit
c6a83ab92c
|
@ -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"
|
||||
ENTRYPOINT "/app/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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user