Skip to content

Commit

Permalink
new config file k8s files
Browse files Browse the repository at this point in the history
  • Loading branch information
manupanand committed Dec 15, 2024
1 parent d090609 commit a5ae2b2
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 8 deletions.
11 changes: 10 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@ node_modules
.git
.gitignore
.env.example
.env
config/.env
project-ops
Dockerfile
*.md
*.yml
*.log
*.service
*.conf
LICENSE
*.yaml
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ web_modules/
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
config/.env
config/.env.development.local
config/.env.test.local
config/.env.production.local
config/.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cd project-quiz-app
npm install
```
### Set up environment variables:
Create a .env file in the root directory and configure the following:
Create a .env file in the ./config/ directory and configure the following or use .env.example:

```
-MONGO_ATLAS="mongodb://localhost:27017/testdb"
Expand Down
Empty file added project-ops/Readme.md
Empty file.
File renamed without changes.
Empty file.
Empty file.
Empty file.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const express=require("express")
const app=express()
const cors=require('cors')
require('dotenv').config()
require('dotenv').config({
path: './config/.env'
})
const bodyParser=require('body-parser')
const logger=require('./config/logger')
const {databaseConnection}=require('./config/db')
Expand Down

0 comments on commit a5ae2b2

Please sign in to comment.