hugo.soucy.cc

The personnal website source code of Hugo Soucy. Creates from an homebrewed static website generator (Ferron).
Log | Files | Refs

commit 58424b1cab14dab7916b3d56f12d38980cf5703f
parent 7bd4601de1d1654640997df49fbf390ac7b2d514
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Fri, 10 Aug 2018 18:47:53 -0400

Merge branch 'master' of github.com:hs0ucy/hugo.soucy.cc

Diffstat:
Mplugins/httpd/httpd.lua | 8+++++++-
Msite-config.lua | 3++-
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/plugins/httpd/httpd.lua b/plugins/httpd/httpd.lua @@ -1,4 +1,10 @@ -local pegasus = require 'pegasus' +package.path = package.path .. ";../../?.lua" + +local pegasus = require "pegasus" +local inspect = require "inspect" +local config = require "site-config" + +print(inspect(config)) local server = pegasus:new({ port='8181', diff --git a/site-config.lua b/site-config.lua @@ -2,7 +2,7 @@ -- Website Configuration File -- -siteconfig = { +local siteconfig = { domainname = "hugo.soucy.cc", url = "https://hugo.soucy.cc", urldev = "http://localhost:8181", @@ -66,3 +66,4 @@ siteconfig = { "application/pdf", } } +return siteconfig