virtual environment running python 3.7
pip3 install virtualenv
virtualenv -p /usr/bin/python3.7 gw-web\
npm and node must be installed
source gw-web/bin/activate
git clone git@github.com:iotmaxx/gw-webinterface.git
cd gw-webinterface
source setup.sh
flask run
-
Make sure the virtual environment is installed correctly and activated
-
Check if the environment variable FLASK_APP is set to gw_backend (echo $FLASK_APP). If it is not set run export FLASK_APP=gw_backend
-
Check if the environment variables FLASK_RUN_HOST and FLASK_RUN_PORT are set to 0.0.0.0 and 3000 (echo $FLASK_RUN_HOST && echo $FLASK_RUN_PORT).
If it is not set run export FLASK_RUN_HOST=0.0.0.0 && FLASK_RUN_PORT=3000 -
Make sure all required frontend dependencies are installed correctly and the gw-backend/static contains the output from the build process