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 생성합니다.
cgi-bin/ 스토리지 컨테이너에 fortune.cgi 배치하십시오.fortune.db 배치하거나 다른 곳에 배치하고 FORTUNE_DB 환경의 인프라-코드 구성 구성 경로로 설정하십시오. Sijmen J. Mulder ([email protected]). License.md를 참조하십시오.