-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase query timeout & merge docker images (#488)
- Loading branch information
1 parent
b44c193
commit 7b8ad3a
Showing
3 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
npm run db:migrate | ||
npm run processor:debug | ||
role=${CONTAINER_ROLE:-app} | ||
|
||
if [ "$role" = "processor" ]; then | ||
npm run db:migrate | ||
npm run processor:debug | ||
elif [ "$role" = "graphql" ]; then | ||
npx squid-graphql-server --subscriptions --dumb-cache in-memory --dumb-cache-ttl 12000 --dumb-cache-size 1024 --dumb-cache-max-age 12000 --max-root-fields 10 --sql-statement-timeout 5000 | ||
else | ||
echo "Could not match the container role \"$role\"" | ||
exit 1 | ||
fi |