Handle HTTP request and execute script
- Write script
- Serve script by Cloud Exec
#!/bin/sh
echo Hello World from shellscript
$ cloud-exec ./script.sh
$ curl localhost:8080 -i
HTTP/1.1 200 OK
Date: Wed, 26 Jun 2019 05:38:58 GMT
Content-Length: 29
Content-Type: text/plain; charset=utf-8
Hello World from shellscript