From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: Web development Date: Mon, 7 Sep 2020 21:53:38 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2784"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.10.0 Cc: guile-user@gnu.org To: sph@posteo.eu Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Sep 07 21:54:55 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFNE7-0000br-Gt for guile-user@m.gmane-mx.org; Mon, 07 Sep 2020 21:54:55 +0200 Original-Received: from localhost ([::1]:45738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFNE6-0004Ka-H9 for guile-user@m.gmane-mx.org; Mon, 07 Sep 2020 15:54:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFNCz-0003Xd-0t for guile-user@gnu.org; Mon, 07 Sep 2020 15:53:45 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:50123) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFNCw-0006s5-G3 for guile-user@gnu.org; Mon, 07 Sep 2020 15:53:44 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id A3F2A2400FC for ; Mon, 7 Sep 2020 21:53:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1599508419; bh=Yq0eU6do+d/ccOpcsfPagjaRzppAOlRMf4E8VolseFA=; h=Subject:Cc:To:From:Date:From; b=NENDNnKoUvCd0tGe4O2CjytdLuecRP+uv5IB6RABRb0qZFTHUVT8x/Eev9X2GXJPP fLNRnzalpXWtHXX9RGLv6T3udBqmUEHSvQpQ8/vd5UF+NwF8kAH0hrquJ9n9W6DTrS 0q+ZuIawPmlB6cEV/bT0d8QT0aNp1Sfr/eWBxV28mzi6XqycbQYYzckiHq+J1R2rgV xUAuQKRFbkqPUdoWA/vBazIKw2r1dPnpsAyML4fdvvXdNyC/deUVj3a9V0B+ME9poW jnANva/5fr8mxv19VyT0EtYuL0lboxmo6aBG++VYk42cqRfxhLxaj6W5SEd2nAae1Y jc4ws9AY5Jr/A== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Blf9H0Ngsz9rxc; Mon, 7 Sep 2020 21:53:39 +0200 (CEST) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/07 13:19:38 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -38 X-Spam_score: -3.9 X-Spam_bar: --- X-Spam_report: (-3.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.825, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16881 Archived-At: Hey Tantalum! On 07.09.20 11:35, tantalum wrote: > this is what i use for web development: > * for static files, i use nginx and convert markdown to html using > guile-commonmark, with an extension that allows calls to scheme code > inside markdown (https://github.com/sph-mn/sph-web-publish) to > generate some content like file listings > * for dynamically generated pages, i use nginx and scgi (like fastcgi > but simpler, http://python.ca/scgi/protocol.txt, > https://github.com/sph-mn/sph-lib/blob/master/modules/sph/scgi.scm) to > call a guile procedure on request. the guile side uses this framework > https://github.com/sph-mn/sph-web-app > * for serving generated files, i use the x-accel-redirect (x-sendfile) > response header to instruct nginx to serve the file > * for example, the linked pages here > http://sph.mn/other/utilities.html are generated on the fly with guile > 3. guile is fast. some of the converters use external tools and have a > long initial output delay for a yet unknown reason Thanks for that! I will have to look into some of it (like scgi) to understand better. It seems like NGINX is a popular choice here as well. I feel like we should put things together and document them (examples!), so that people trying out Guile can quickly find how to get started with a blog or some project like. I hope I can make it work in my example project to share with everyone. Best regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl