appwrite/bin/worker-usage

10 lines
411 B
Text
Raw Normal View History

2020-07-20 20:05:36 +00:00
#!/bin/sh
2020-07-05 13:51:20 +00:00
2021-02-01 06:21:42 +00:00
if [ -z "$_APP_REDIS_USER" ] || [ -z "$_APP_REDIS_PASS" ]
2021-01-31 05:24:38 +00:00
then
REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}"
else
2021-01-31 14:56:06 +00:00
REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}"
2021-01-31 05:24:38 +00:00
fi
2021-02-01 12:24:25 +00:00
QUEUE='v1-usage' APP_INCLUDE='/usr/src/code/app/workers/usage.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php