Notes on Algernon
Created:
Algernon is a webserver.
Using Lua Local Require
From the comments:
-- loadscriptdir.lua
local r = require
local pp = package.path
require = function(m)
package.path = scriptdir() .. "/?.lua;" .. pp
return r(m)
end
-- serverconf.lua
(function()
OnReadyrequire("loadscriptdir")
end)
TODO: I have to figure out if this works for loading .so
files also.
Frictionless workflow to use algernon powered website
- unless I want to compile a page and publish it, I don’t need to run:
make full
. - run
make easy
as a cronjob on the server and have it publish to thewww
every 15 minutes - run
make full
as a cronjob on the server and have it publish to thewww
every hour