2020-07-21 08:05:36 +12:00
|
|
|
#!/bin/sh
|
2020-07-06 01:51:20 +12:00
|
|
|
|
2021-03-19 00:22:12 +13:00
|
|
|
if [ -z "$_APP_REDIS_USER" ] && [ -z "$_APP_REDIS_PASS" ]
|
2021-01-31 18:24:38 +13:00
|
|
|
then
|
|
|
|
REDIS_BACKEND="${_APP_REDIS_HOST}:${_APP_REDIS_PORT}"
|
|
|
|
else
|
2021-02-01 03:56:06 +13:00
|
|
|
REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}"
|
2021-01-31 18:24:38 +13:00
|
|
|
fi
|
|
|
|
|
2021-06-20 09:46:20 +12:00
|
|
|
INTERVAL=1 REDIS_BACKEND=$REDIS_BACKEND RESQUE_PHP='/usr/src/code/vendor/autoload.php' php /usr/src/code/vendor/bin/resque-scheduler
|