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"
}
البيئة التجريبية الحية: https://sjmulder.nl/fortune
التجميع الأول:
$ sudo apt install build-essential libsqlite3-dev libyajl-dev
$ make
هذا ينتج fortune.db و fortune-cgi/fortune.cgi .
fortune.cgi في حاوية cgi-bin/ Storage لمنصة الخادم الخاصة بك.fortune.db بجانبها ، أو ضعه في مكان آخر وقم بتعيين FORTUNE_DB على طريقه في تكوين البنية التحتية للبنية التحتية للبيئة. بقلم Sijmen J. Mulder ([email protected]). انظر الترخيص.