mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
..SHARDING
This commit is contained in:
1 parent
f54764d58d
commit
7c5f783855
3 files changed
+6
-1
No files matched your search
+1
-1
@@ -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 ["npm", "run", "shard"]
|
||||
@@ -5,6 +5,7 @@ services:
|
||||
dockerfile: docker/Dockerfile
|
||||
container_name: remix-bot
|
||||
restart: unless-stopped
|
||||
command: npm run shard
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
|
||||
@@ -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 "$@"
|
||||
Reference in new issue
Block a user