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-10 01:17:05 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
becffd4e31a1cae34db6601fc1a93a0bd5e184b5
becffd4e
1 parent
e49d055c
Modified scheduler
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
app.js
app.js
View file @
becffd4
...
...
@@ -18,9 +18,12 @@ app.use(express.static(__dirname + '/static'));
function
update
()
{
console
.
log
(
'Updating . . .'
);
spawn
(
'python3'
,
[
"run.py"
])
var
getdata
=
spawn
(
'python3'
,
[
"run.py"
])
getdata
.
stdout
.
on
(
'data'
,
function
(
data
)
{
console
.
log
(
data
.
toString
());
})
}
setInterval
(
update
,
1000
*
60
*
60
*
3
)
setInterval
(
update
,
1000
*
60
*
60
*
2
)
var
server
=
http
.
createServer
(
app
).
listen
(
port
,
function
(){
console
.
log
(
"Server Running . . ."
);
...
...
Please
register
or
login
to post a comment