all repos — archive/homestead @ e7b08b1dfe3f2a2596deb6e2a72bb79805d3708f

My future indieweb platform

feat: Add code block highlighting Theme is configurable

Alan Pearce
commit

e7b08b1dfe3f2a2596deb6e2a72bb79805d3708f

parent

a67e38d1a82c95db5bd24183e81b31438f60dd2c

1 file changed, 9 insertions(+), 5 deletions(-)

changed files
M src/index.jssrc/index.js
@@ -11,8 +11,12 @@ }
const app = require("./app.js"); -module.exports = app; - -app.listen(PORT, () => { - console.log(`App listening on port ${PORT}`); -}); +(async function() { + try { + (await app()).listen(PORT, () => { + console.log(`App listening on port ${PORT}`); + }); + } catch (error) { + console.error("App startup error", error); + } +})();