fortune cgi
1.0.0
Fortune Serverless (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 ของแพลตฟอร์ม Serverless ของคุณfortune.db ถัดจากมันหรือวางไว้ที่อื่นและตั้ง FORTUNE_DB เป็นเส้นทางในการกำหนดค่าโครงสร้างพื้นฐานของสภาพแวดล้อมของคุณ โดย Sijmen J. Mulder ([email protected]) ดู License.md