1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00
appwrite/bin/worker-deletes
2021-01-31 11:09:38 +05:45

13 lines
368 B
Bash

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