FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
beacon/probe.js at gh-pages · JavaScriptSolidServer/beacon · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
JavaScriptSolidServer
/
beacon
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
4
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
beacon
/
probe.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 544 Bytes
Breadcrumbs
beacon
/
probe.js
Copy path
File metadata and controls
14 lines (12 loc) · 544 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Production entrypoint: start the relay-health prober.
//
// Like serve.js, this avoids relying on the `import.meta.url === main` guard
// (pm2's launcher runs files through a wrapper, so that guard won't fire). Use:
//
// PROBE_INTERVAL=3600000 MONGO_DB=nostr pm2 start probe.js --name relay-prober
import
{
runProber
,
proberConfig
,
USAGE
}
from
'./src/prober.js'
;
if
(
proberConfig
(
)
.
help
)
{
console
.
log
(
USAGE
)
;
process
.
exit
(
0
)
;
}
runProber
(
)
.
catch
(
(
e
)
=>
{
console
.
error
(
'[beacon] prober failed to start:'
,
e
)
;
process
.
exit
(
1
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL