hell
This commit is contained in:
parent
72f924d313
commit
762c17026c
3 changed files with 8 additions and 2 deletions
6
index.js
6
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}`);
|
||||
});
|
|
@ -4,7 +4,7 @@
|
|||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "node index.js"
|
||||
"start": "git pull; node index.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
args = {...}
|
||||
|
||||
url = "https://lua.gaywine.org"
|
||||
|
||||
path = "bin/"
|
||||
if not fs.exists(path) then
|
||||
fs.makeDir(path)
|
||||
|
|
Loading…
Reference in a new issue