Update application port to 3660 to match server configuration
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Server Port | منفذ الخادم
|
# Server Port | منفذ الخادم
|
||||||
PORT=3001
|
PORT=3660
|
||||||
|
|
||||||
# Environment | بيئة العمل (development, production)
|
# Environment | بيئة العمل (development, production)
|
||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ RUN npm install --only=production
|
|||||||
COPY --from=builder /usr/src/app/dist ./dist
|
COPY --from=builder /usr/src/app/dist ./dist
|
||||||
|
|
||||||
# Expose port | فتح المنفذ
|
# Expose port | فتح المنفذ
|
||||||
EXPOSE 3001
|
EXPOSE 3660
|
||||||
|
|
||||||
# Command to run | أمر التشغيل
|
# Command to run | أمر التشغيل
|
||||||
CMD ["node", "dist/main"]
|
CMD ["node", "dist/main"]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
container_name: ads-analytics-api
|
container_name: ads-analytics-api
|
||||||
ports:
|
ports:
|
||||||
- "${PORT:-3001}:3001"
|
- "${PORT:-3660}:3660"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ async function bootstrap() {
|
|||||||
|
|
||||||
// Get ConfigService for port | الحصول على خدمة الإعدادات للمنفذ
|
// Get ConfigService for port | الحصول على خدمة الإعدادات للمنفذ
|
||||||
const configService = app.get(ConfigService);
|
const configService = app.get(ConfigService);
|
||||||
const port = configService.get<number>('PORT') || 3001;
|
const port = configService.get<number>('PORT') || 3660;
|
||||||
|
|
||||||
// Security | الحماية
|
// Security | الحماية
|
||||||
// Helmet adds various HTTP headers to protect the app
|
// Helmet adds various HTTP headers to protect the app
|
||||||
|
|||||||
Reference in New Issue
Block a user