Skip to content

Commit 5688403

Browse files
committed
python: add workflow for starting HTTP server
1 parent ef869d0 commit 5688403

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

specs/python/start_server.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Start a simple HTTP server using Python
3+
command: "python3 -m http.server {{port}} -d {{directory}}"
4+
tags: ["python"]
5+
description: Start a simple HTTP server using Python 3, using the in-built http.server module.
6+
arguments:
7+
- name: port
8+
description: The port number that the server should listen on.
9+
default_value: ~
10+
- name: directory
11+
description: The directory to which the server will serve files.
12+
default_value: ~
13+
source_url: "https://stackoverflow.com/questions/7943751/what-is-the-python-3-equivalent-of-python-m-simplehttpserver"
14+
author: anand-tripathi
15+
author_url: "https://stackoverflow.com/users/5230702/anand-tripathi"
16+
shells: []

0 commit comments

Comments
 (0)