Skip to content

Redis queue intergration #30

Closed Answered by shinsenter
jwesemann asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jwesemann

When you use my Docker images, you can run your shell script when the container starts by copying your script into the /startup/ directory of the container and giving it execute permissions using chmod.

You can create a file similar to the one below, name it flarum-worker.sh, and then place it in the /startup/ directory of your container.

#!/bin/sh
# wait until composer install completed
while [ ! -f "${WEBHOME}/composer/ClassLoader.php" ]; do sleep 1; done
php $WEBHOME/flarum queue:work >/proc/1/fd/1 2>/proc/1/fd/2

Best regards.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by shinsenter
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants