This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
PORT=5000
|
||||
DB_URI=mongodb://localhost:27017/
|
||||
NODE_ENV=development
|
||||
3
backend/.env.production
Normal file
3
backend/.env.production
Normal file
@@ -0,0 +1,3 @@
|
||||
PORT=5000
|
||||
DB_URI=mongodb://10.1.1.7:27017/
|
||||
NODE_ENV=production
|
||||
2
backend/.gitignore
vendored
2
backend/.gitignore
vendored
@@ -13,4 +13,4 @@ logs
|
||||
# Local env files
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
!.env.production
|
||||
|
||||
@@ -6,7 +6,7 @@ const app = express();
|
||||
const connectDB = require("./db");
|
||||
|
||||
// connect database
|
||||
// connectDB();
|
||||
connectDB();
|
||||
|
||||
app.use(cors({
|
||||
origin: 'http://localhost:3000',
|
||||
|
||||
Reference in New Issue
Block a user