bash
wget https://github.com/blocklessnetwork/blockless-web-cgi/archive/refs/heads/main.zip
Use the follow command you can build the wasi file.
bash
$ make release
Download the blockless runtime. https://github.com/blocklessnetwork/runtime/releases
Modify the cgi script cgi-web
```python
opts, args = getopt.getopt(sys.argv[1:], '', ['extverify']) verify = {"alias": "cgi-web","description": "this is cgi-web test","iscgi": True} isverify = False for o, a in opts: if o in ('--extverify'): is_verify = True
if is_verify: print(json.dumps(verify)) sys.exit(0)
print("web-cgi: hello world") ```
Now you can start the server and browse to http://localhost:8000/ to see it in action:
bash
$ blockless-cli blockless-web-cgi.wasm - --drivers-root-path=$DIRECTORY_OF_CGI_WEB