For Python<br />
cd /var/www/piApp<br />
python3 test.py<br />
192.168.8.113:5000 (browser에서는 안 됨)<br />
<br />
For venv<br />
cd /var/www/study<br />
python3 -m venv venv<br />
ls<br />
. venv/bin/activate<br />
deactivate <br />
<br />
<br />
For python3 test.py 대신 ./test.py로 동작시키<br />
sudo chmod a+x test.py<br />
type python3 (어디에 있는 화일?)<br />
(add at top of file) #!/usr/bin/python3  (or #!/usr/bin/env python3   add to top of .py file)<br />
then <br />
./test.py<br />
<br />
<a href="https://www.youtube.com/watch?v=zcYMB-uXKNs&t=49s">piApp Youtube</a><br />
<br />
exit()<br />
sudo chmod -R 777 /var/www/piApp<br />
sudo chown -R 777 /var/www/piApp<br />
<br />
For Flask<br />
cd /var/www/study<br />
export FLASK_APP=server.py  (=application.py)<br />
#export FLASK_ENV=development  ...or production<br />
flask run --host=0.0.0.0<br />
