mirror of
https://github.com/youngchief-btw/ProxyChief.git
synced 2024-06-17 22:47:07 +00:00
Asynchronous self-updating!
This commit is contained in:
parent
fb1bb8af89
commit
e21e66d9e6
|
@ -34,7 +34,7 @@ app.get("/", function(req, res) {
|
||||||
|
|
||||||
app.listen(process.env.PORT);
|
app.listen(process.env.PORT);
|
||||||
|
|
||||||
setInterval(function() {
|
setInterval(async function() {
|
||||||
// Self-updating
|
// Self-updating
|
||||||
exec("git pull && git fetch", (error, stdout, stderr) => {
|
exec("git pull && git fetch", (error, stdout, stderr) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user