Add a comment about spawn-fcgi and lighttpd.

This commit is contained in:
barnold 2022-10-02 13:05:47 +01:00
parent dd6ea0a0ba
commit a7b8116ff7
1 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,16 @@
#!/usr/bin/env perl
#
# A note about lighttpd and fastcgi, based on
# <https://github.com/mojolicious/mojo/wiki/Deploying-on-Lighttpd-with-FastCGI>
# which shows how to start the app via lighttpd. However, it doesn't
# show how to start the app yourself, outside of lighttpd, in such
# a way that it'll work under fcgi.
#
# To do this:
# Change the lighttpd conf to remove "bin-path" and instead use (e.g.)
# "host" => "localhost".
# Then to start the app, use 'spawn-fcgi', e.g.
# spawn-fcgi -a 127.0.0.1 -p 8080 -- script/my_app fastcgi
use strict;
use warnings;