From 5569c8191ae02f109254282b5943e3ed40032018 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 9 Jul 2022 03:20:53 +1000 Subject: Replace CGI script with WSGI script and dev server --- backend/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'backend/README.md') diff --git a/backend/README.md b/backend/README.md index 3a56f76..358ed72 100644 --- a/backend/README.md +++ b/backend/README.md @@ -1,8 +1,9 @@ # Files -- cgi-bin/data.py: CGI script for providing tree-of-life data to client +- server.py: Basic dev server that serves a WSGI script +- tilo.py: WSGI script that serves tree-of-life data - data: Contains scripts for generating the tree-of-life database # During development -Having generated the database as data/data.db, running `python3 -m http.server --cgi 8000`, -in this directory, allows the client to access the CGI script, and hence the database, -via `localhost:8000/cgi-bin/data.py`. +Having generated the database as data/data.db, running `server.py`, +in this directory, allows the client to access data from `tilo.py`, +via `localhost:8000`. -- cgit v1.2.3