chore: switch container entrypoint to run shard.mjs

This commit is contained in:
NoLogicAlan committed 2026-10-21 03:08:06 +03:00
1 parent 6439f07204
commit e9a58f422a
3 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -41,4 +41,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
ENTRYPOINT ["/usr/bin/tini", "--", "/app/docker/docker-entrypoint.sh"]
CMD ["node", "index.mjs"]
CMD ["node", "shard.mjs"]
+1
View File
@@ -5,6 +5,7 @@ services:
dockerfile: docker/Dockerfile
container_name: remix-bot
restart: unless-stopped
command: node shard.mjs
depends_on:
mysql:
condition: service_healthy
+4
View File
@@ -25,4 +25,8 @@ if [ "$1" = "node" ] && [ "$2" = "shard.mjs" ]; then
echo "[Docker] Starting Remix bot (sharded supervisor)..."
fi
if [ "$1" = "npm" ] && [ "$2" = "run" ] && [ "$3" = "shard" ]; then
echo "[Docker] Starting Remix bot (sharded supervisor via npm run shard)..."
fi
exec "$@"