project push
This commit is contained in:
parent
12ef55e756
commit
2399a31aac
31 changed files with 20580 additions and 0 deletions
16
server.js
Normal file
16
server.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
const app = require('./src/app')
|
||||
const { baseWebhookURL } = require('./src/config')
|
||||
require('dotenv').config()
|
||||
|
||||
// Start the server
|
||||
const port = process.env.PORT || 3000
|
||||
|
||||
// Check if BASE_WEBHOOK_URL environment variable is available
|
||||
if (!baseWebhookURL) {
|
||||
console.error('BASE_WEBHOOK_URL environment variable is not set. Exiting...')
|
||||
process.exit(1) // Terminate the application with an error code
|
||||
}
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Server running on port ${port}`)
|
||||
})
|
||||
Loading…
Reference in a new issue