To start the server - PFE-TrieuseConsigne/RPi GitHub Wiki

Everytime there is a modification, this following line should be runned

service apache2 restart

If the IP address should be changed, type the following and change the ServerName sudo nano /etc/apache2/sites-available/FlaskApp.conf

Finally, the script should run like so sudo python3 /var/www/FlaskApp/FlaskApp/__init__.py

Debug

sudo nano /etc/apache2/sites-available/FlaskApp.conf

To initiate the previous changes, go to this repo like so:

cd /var/www/FlaskApp/FlaskApp And then, type down those commands :

sudo a2ensite Flaskapp

service apache2 reload

Go the the file :

sudo nano /var/www/FlaskApp/flaskapp.wsgi

service apache2 restart