#!/usr/bin/bash

while read -r line; do
  # skip blank lines and comments (systemd's EnvironmentFile ignores these too)
  case "$line" in ''|[[:space:]]*\#*|\#*) continue ;; esac
  echo export "${line}"
  export "${line}"
done </etc/motley_cue/motley_cue.env

/usr/lib/motley-cue/bin/gunicorn motley_cue.api:api -k "uvicorn.workers.UvicornWorker" --config /usr/lib/motley-cue/etc/gunicorn/gunicorn.conf.py
