Skip to content

Commit b48978d

Browse files
Add comments about how we enable and disable queue workers
1 parent a66a8bf commit b48978d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
- AWS_REGION=us-east-1
1919
- AWS_ACCESS_KEY_ID=test
2020
- AWS_SECRET_ACCESS_KEY=test
21-
- DISABLE_QUEUE_WORKER=false
21+
- DISABLE_QUEUE_WORKER=true
2222
build:
2323
context: ./
2424
dockerfile: Dockerfile

vendor/docker/shoryuken.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/bin/sh
22
cd /home/app/webapp
3+
4+
# Redirect stdout and stderr to the same place
35
exec 2>&1
46

5-
# Disabled with DISABLE_QUEUE_WORKER, start shoryuken
7+
# Disble starting the queue worker when the environment variable DISABLE_QUEUE_WORKER is set to "true".
8+
# This value is set in the docker-compose.yml file
69
if [ "$DISABLE_QUEUE_WORKER" != "true" ]; then
710
exec /sbin/setuser app bundle exec shoryuken -R -C config/shoryuken.yml
811
fi

0 commit comments

Comments
 (0)