root@ubuntu:/home/iot_devices# source bateau.sh
BASH_SOURCE = bateau.sh
Avant virtuel env
Platform: "linux-x86_64"
Python version: "3.12"
Current installation scheme: "venv"
Paths:
data = "/home/iot_devices/.venv"
include = "/usr/include/python3.12"
platinclude = "/usr/include/python3.12"
platlib = "/home/iot_devices/.venv/lib/python3.12/site-packages"
platstdlib = "/home/iot_devices/.venv/lib/python3.12"
purelib = "/home/iot_devices/.venv/lib/python3.12/site-packages"
scripts = "/home/iot_devices/.venv/bin"
stdlib = "/usr/lib/python3.12"
-----------
-bash
+++ dirname -bash
dirname: invalid option -- 'b'
Try 'dirname --help' for more information.
+++ set +x
Directory:
/home/iot_devices
-----------
Dans virtuel env
python3: /usr/bin/python3 /usr/lib/python3 /etc/python3 /usr/share/python3 /home/iot_devices/.venv/bin/python3 /usr/share/man/man1/python3.1.gz
VIRTUAL_ENV=/home/iot_devices/.venv
VIRTUAL_ENV_PROMPT=(.venv)
Current installation scheme: "venv"
data = "/home/iot_devices/.venv"
platlib = "/home/iot_devices/.venv/lib/python3.12/site-packages"
platstdlib = "/home/iot_devices/.venv/lib/python3.12"
------------
RUN PYTHON SCRIPT ...
CONNEXION à la base de données réussi
* Serving Flask app 'UTILISATEURS'
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on
http://127.0.0.1:5000
* Running on
http://xxxxxxxxxxxxxx
Press CTRL+C to quit
Partager