from github to this gitea
This commit is contained in:
19
servir un dossier via http.md
Normal file
19
servir un dossier via http.md
Normal file
@@ -0,0 +1,19 @@
|
||||
up:: [[python]]
|
||||
title:: `python3 -m http.server [port]`
|
||||
#informatique/python
|
||||
|
||||
---
|
||||
|
||||
Comment rendre un dossier du système accessible via http.
|
||||
|
||||
> [!definition] syntaxe
|
||||
> ```bash
|
||||
> $> python3 -m http.server
|
||||
> ```
|
||||
> - sert par défaut sur `localhost:8000`
|
||||
>
|
||||
> en précisant le port à utiliser :
|
||||
> ```bash
|
||||
> $> python3 -m http.server [port]
|
||||
> ```
|
||||
^syntaxe
|
||||
Reference in New Issue
Block a user