Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박은주
/
Todays_Issue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박은주
2021-06-09 14:32:27 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7d0a8674f4c8f0ec3d6c2e3dad9d8368fff591ad
7d0a8674
1 parent
205cbe2c
Add Scheduler
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
app.js
app.js
View file @
7d0a867
const
http
=
require
(
'http'
);
const
express
=
require
(
'express'
)
const
express
=
require
(
'express'
)
;
const
fs
=
require
(
'fs'
);
const
path
=
require
(
'path'
);
const
schedule
=
require
(
'node-schedule'
);
const
spawn
=
require
(
'child_process'
).
spawn
;
const
{
rawListeners
}
=
require
(
'process'
);
var
port
=
23023
;
...
...
@@ -15,6 +16,12 @@ app.engine('html', require('ejs').renderFile);
app
.
use
(
express
.
static
(
__dirname
+
'/static'
));
function
update
()
{
console
.
log
(
'Updating . . .'
);
spawn
(
'python3'
,
[
"run.py"
])
}
setInterval
(
update
,
1000
*
60
*
60
*
3
)
var
server
=
http
.
createServer
(
app
).
listen
(
port
,
function
(){
console
.
log
(
"Server Running . . ."
);
})
\ No newline at end of file
...
...
Please
register
or
login
to post a comment