File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // ecosystem.config.js
2+ module . exports = {
3+ apps : [
4+ {
5+ name : 'my-node-app' ,
6+ script : 'server.js' ,
7+ instances : 1 , // or "max" for all CPUs
8+ autorestart : true ,
9+ watch : false , // Set true if you want hot reload in dev
10+ max_memory_restart : '200M' ,
11+ env : {
12+ NODE_ENV : 'production' ,
13+ } ,
14+ } ,
15+ ] ,
16+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ import { LoggerModule } from './logger/logger.module';
1313 } ) ,
1414 MongooseModule . forRootAsync ( {
1515 imports : [ ConfigModule ] ,
16- useFactory : ( configService : ConfigService ) => {
17- const uri = configService . get < string > ( 'MONGO_URL' ) ;
16+ useFactory : ( ) => {
17+ const uri = 'mongodb://localhost:27017/notifybd' ;
1818 if ( ! uri ) {
1919 throw new Error ( 'MONGO_URI not found in configuration' ) ;
2020 }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import * as path from 'path';
1111const envPath = path . resolve ( __dirname , '../.env' ) ;
1212dotenv . config ( { path : envPath } ) ;
1313
14- console . log ( 'Environment variables loaded from:' , process . env . MONGO_URL ) ;
14+ // console.log('Environment variables loaded from:', process.env.MONGO_URL);
1515
1616async function bootstrap ( ) {
1717 const app = await NestFactory . create ( AppModule ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments