fix: اصلاح Dockerfile و server.js برای اجرای صحیح API
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
require('dotenv').config()
|
||||
console.log('APP_PORT:', process.env.APP_PORT)
|
||||
|
||||
const bootApplication = require('./index')
|
||||
bootApplication(process.env.APP_PORT)
|
||||
console.log('Index loaded, booting...')
|
||||
|
||||
const port = process.env.APP_PORT || 3002
|
||||
bootApplication(port)
|
||||
console.log(`✅ Server should be running on port ${port}`)
|
||||
|
||||
Reference in New Issue
Block a user