fortune cgi
1.0.0
Serverless Fortune (6) Microservice.
$ ./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"
}
Lingkungan Demo Langsung: https://sjmulder.nl/fortune
Kompilasi pertama:
$ sudo apt install build-essential libsqlite3-dev libyajl-dev
$ make
Ini menghasilkan fortune.db dan fortune-cgi/fortune.cgi .
fortune.cgi di cgi-bin/ wadah penyimpanan platform tanpa server Anda.fortune.db di sebelahnya, atau tempatkan di tempat lain dan atur FORTUNE_DB ke jalurnya di konfigurasi infrastruktur-sebagai-kode lingkungan Anda. Oleh Sijmen J. Mulder ([email protected]). Lihat lisensi.md.