#!/bin/bash

export FLASK_APP=/var/www/telemetry/telemetryui/run.py
pushd /var/www/telemetry/telemetryui/

flask db upgrade
uwsgi --http 0.0.0.0:5000 --chdir /var/www/telemetry/telemetryui/ -w telemetryui:app --spooler /var/www/telemetry/telemetryui/uwsgi-spool

#!/bin/bash

export FLASK_APP=/var/www/telemetry/telemetryui/run.py
pushd /var/www/telemetry/telemetryui/

flask db upgrade
uwsgi --http 0.0.0.0:5000 --chdir /var/www/telemetry/telemetryui/ -w telemetryui:app \
      --spooler /var/www/telemetry/telemetryui/uwsgi-spool --py-autoreload 1

Enable autoreload on change in dev environment
Enable autoreload on change in dev environment

entrypoint.sh : add argument to autoreload application when module is
                changed in development environment.

Signed-off-by: Alex Jaramillo <4de9cd0e637269109d94c2caa194cdf58aba110d@intel.com>
