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 crypto = require('crypto');
const port = 443; const port = 8080;
var app = express(); var app = express();
@ -114,6 +114,10 @@ app.post("/updates/:project(\\w+)", (req, res) => {
} }
}); });
app.all("/", (req, res) => {
res.send("OK.");
});
app.listen(port, () => { app.listen(port, () => {
console.log(`listening on ${port}`); console.log(`listening on ${port}`);
}); });

View file

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

View file

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