This commit is contained in:
jane 2021-06-05 22:22:49 -04:00
parent 72f924d313
commit 762c17026c
3 changed files with 8 additions and 2 deletions

View File

@ -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}`);
});

View File

@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js"
"start": "git pull; node index.js"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,7 @@
args = {...}
url = "https://lua.gaywine.org"
path = "bin/"
if not fs.exists(path) then
fs.makeDir(path)