From 786a5370532d111a9526ed3e870f1adba208e6b6 Mon Sep 17 00:00:00 2001 From: hamzaadil56 Date: Wed, 8 Jun 2022 12:48:22 +0500 Subject: [PATCH] procfile delete --- .gitignore | 4 +--- Procfile | 1 - backend/config/config.env | 1 - backend/server.js | 2 +- package.json | 2 +- 5 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 Procfile diff --git a/.gitignore b/.gitignore index 38183dc..d7833fe 100644 --- a/.gitignore +++ b/.gitignore @@ -8,11 +8,9 @@ # testing /coverage -# production -/build # misc -/config/config.env +/backend/config/config.env .DS_Store .env.local .env.development.local diff --git a/Procfile b/Procfile deleted file mode 100644 index 28fe750..0000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: npm run start diff --git a/backend/config/config.env b/backend/config/config.env index c8ec9e6..c30a78a 100644 --- a/backend/config/config.env +++ b/backend/config/config.env @@ -2,7 +2,6 @@ DB_URI = mongodb://hamzaadil:hamzaadilclothretails42@ac-9imsyqn-shard-00-00.2j6b PORT = 5000 - COOKIE_EXPIRE = 5 JWT_EXPIRE = 5d diff --git a/backend/server.js b/backend/server.js index c7c7df2..bd0c981 100644 --- a/backend/server.js +++ b/backend/server.js @@ -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" }); } diff --git a/package.json b/package.json index d502abb..71c298b 100644 --- a/package.json +++ b/package.json @@ -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",