From 762c17026cfe7242cb7cb33bf46215959250fe3b Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Sat, 5 Jun 2021 22:22:49 -0400 Subject: [PATCH] hell --- index.js | 6 +++++- package.json | 2 +- projects/updater/install.lua | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d6bff9b..7b40d5f 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const path = require('path'); const crypto = require('crypto'); -const port = 443; +const port = 8080; var app = express(); @@ -114,6 +114,10 @@ app.post("/updates/:project(\\w+)", (req, res) => { } }); +app.all("/", (req, res) => { + res.send("OK."); +}); + app.listen(port, () => { console.log(`listening on ${port}`); }); \ No newline at end of file diff --git a/package.json b/package.json index 2a5ba1e..85b0b22 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "start": "node index.js" + "start": "git pull; node index.js" }, "repository": { "type": "git", diff --git a/projects/updater/install.lua b/projects/updater/install.lua index 9197824..1e543f0 100644 --- a/projects/updater/install.lua +++ b/projects/updater/install.lua @@ -1,5 +1,7 @@ args = {...} +url = "https://lua.gaywine.org" + path = "bin/" if not fs.exists(path) then fs.makeDir(path)