fortune cgi
1.0.0
无服务的财富(6)微服务。
$ ./fortune-cgi/fortune.cgi
Content-Type: text/json
{
"id": 124,
"fortune": "It may or may not be worthwhile, but it still has to be done.n"
}
实时演示环境:https://sjmulder.nl/fortune
第一个编译:
$ sudo apt install build-essential libsqlite3-dev libyajl-dev
$ make
这产生了fortune.db和fortune-cgi/fortune.cgi 。
fortune.cgi放在您无服务器平台的cgi-bin/存储容器中。fortune.db放在其旁边,或将其放置在其他地方,然后将FORTUNE_DB设置在环境基础架构AS-AS代码配置中。 Sijmen J. Mulder([email protected])。请参阅许可证。