mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-15 14:22:14 +11:00
made the thingy do things when restart
This commit is contained in:
parent
d4c1e9c106
commit
4ab1e823b7
2 changed files with 4 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -22,3 +22,5 @@
|
|||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
tmp
|
||||
|
|
|
|||
|
|
@ -204,6 +204,8 @@ router.post("/changebackend", checkAdmin, async function (req, res) {
|
|||
process.env.MONGO +
|
||||
"\nSETUP=true"
|
||||
);
|
||||
fs.mkdirSync("tmp");
|
||||
fs.writeFileSync("tmp/restart.txt", "");
|
||||
res.redirect("../");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue