You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Algernon 1.15.5
Web Server
Syntax:
algernon [flags] [file or directory to serve] [host][:port]
Following the syntax when I try algernon -p . 127.0.0.1:8080 the program fails to start:
-------------------------------------------------
-> /etc/algernon/serverconf.lua
INFO[0000] Serving HTTP/2 on https://localhost/
INFO[0000] Serving HTTP on http://localhost/
ERRO[0000] open /etc/algernon/cert.pem: no such file or directory
FATA[0000] listen tcp :80: bind: permission denied
Yet if I move -p to the end it works, contrary to the help syntax: algernon . 127.0.0.1:8080 -p
-------------------------------------------------
-> /etc/algernon/serverconf.lua
INFO[0000] Serving HTTP/2 on https://127.0.0.1:8080/
ERRO[0000] open cert.pem: no such file or directory. Not serving HTTP/2.
INFO[0000] Use the -t flag for serving regular HTTP.
INFO[0000] Serving HTTP on http://127.0.0.1:8080/
Ready
lua>
If this is a feature, please document that -p must be the last flag passed for it to work(or the conf file takes precedence over -p), if not please allow -p to be used as the first flag.
Other combinations I tried include algernon -x and algernon . localhost:3000 -x, the latter which show the lua repl whereas the former doesn't.
The text was updated successfully, but these errors were encountered:
The help msg says:
Following the syntax when I try
algernon -p . 127.0.0.1:8080
the program fails to start:Yet if I move -p to the end it works, contrary to the help syntax:
algernon . 127.0.0.1:8080 -p
If this is a feature, please document that
-p
must be the last flag passed for it to work(or the conf file takes precedence over -p), if not please allow -p to be used as the first flag.Other combinations I tried include
algernon -x
andalgernon . localhost:3000 -x
, the latter which show the lua repl whereas the former doesn't.The text was updated successfully, but these errors were encountered: