mirror of
https://github.com/rjNemo/MERN_sample_app
synced 2026-06-06 00:36:39 +00:00
try to deploy2
This commit is contained in:
parent
76aeb0907d
commit
03c3d6747a
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ import mongoose from "mongoose";
|
|||
import path from "path";
|
||||
import moment from "moment";
|
||||
import helmet from "helmet";
|
||||
import { MONGO_URI } from "./config/keys.js";
|
||||
// import { MONGO_URI } from "./config/keys.js";
|
||||
import items from "./routes/api/items.js";
|
||||
|
||||
const app = express();
|
||||
|
|
@ -11,7 +11,7 @@ const app = express();
|
|||
// http port
|
||||
const PORT = process.env.PORT || 5000;
|
||||
// database connection key
|
||||
const db = MONGO_URI;
|
||||
const db = process.env.MONGO_URI;
|
||||
|
||||
// connection to database
|
||||
mongoose
|
||||
|
|
|
|||
Loading…
Reference in a new issue