Skip to content

Commit

Permalink
added error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mdervisaygan committed Oct 2, 2024
1 parent cca51e8 commit 6060123
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cf-clearance-scraper",
"version": "2.0.5",
"version": "2.0.6",
"main": "index.js",
"scripts": {
"start": "node src/index.js",
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ app.use(bodyParser.urlencoded({ extended: true }))
app.use(cors())
if (process.env.NODE_ENV !== 'development') {
let server = app.listen(port, () => { console.log(`Server running on port ${port}`) })
server.timeout = (global.timeOut || 60000)
try {
server.timeout = global.timeOut
} catch (e) { }
}
if (process.env.SKIP_LAUNCH != 'true') require('./module/createBrowser')

Expand Down

0 comments on commit 6060123

Please sign in to comment.