1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00
appwrite/bin/worker-mails
Bradley Schofield da9860c7c4 Revert "Merge branch 'master' into feat-1297-add-expire-date-to-urls"
This reverts commit 9472867c66, reversing
changes made to 7e8d76b66d.
2021-07-02 11:39:41 +01:00

10 lines
411 B
Bash

#!/bin/sh
if [ -z "$_APP_REDIS_USER" ] && [ -z "$_APP_REDIS_PASS" ]
then
REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}"
else
REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}"
fi
QUEUE='v1-mails' APP_INCLUDE='/usr/src/code/app/workers/mails.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php