#!/usr/bin/env bash


if [[ -z "$@" ]]; then
    exec uwsgi --http-socket 0.0.0.0:80 \
               --drop-after-init \
               --uid nobody \
               --gid nogroup \
               --log-date="%Y-%m-%d %H:%M:%S" \
               --logformat-strftime \
               --log-micros \
               --master \
               --processes ${UWSGI_NUM_PROCESSES:-8} \
               --lazy-apps \
               --need-app --module pipedream_requeue.wsgi:app
else
    exec $@
fi


