Skip to content

Commit

Permalink
procfile delete
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaadil56 committed Jun 8, 2022
1 parent a3d03c3 commit 786a537
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
# testing
/coverage

# production
/build

# misc
/config/config.env
/backend/config/config.env
.DS_Store
.env.local
.env.development.local
Expand Down
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

1 change: 0 additions & 1 deletion backend/config/config.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ DB_URI = mongodb://hamzaadil:[email protected]

PORT = 5000


COOKIE_EXPIRE = 5

JWT_EXPIRE = 5d
Expand Down
2 changes: 1 addition & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ process.on("uncaughtException", (err) => {

//Config

if (process.env.NODE_ENV !== "PRODUCTION") {
if (process.env.NODE_ENV !== "production") {
require("dotenv").config({ path: "backend/config/config.env" });
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"server": "nodemon backend/server.js ",
"client": "cd .. && cd frontend && npm start",
"dev": "concurrently \"nodemon server.js\" \"npm run client\"",
"heroku-postbuild": "NPM_CONFIG_PRODUCTION=false && npm install && npm install --prefix frontend && npm run build --prefix frontend"
"heroku-postbuild": "NPM_CONFIG_PRODUCTION=false npm install --prefix frontend && npm run build --prefix frontend"
},
"author": "",
"license": "ISC",
Expand Down

0 comments on commit 786a537

Please sign in to comment.