mirror of
https://github.com/rjNemo/MERN_sample_app
synced 2026-06-06 00:36:39 +00:00
concurrently to std deps
This commit is contained in:
parent
03c3d6747a
commit
90c1ba0628
2 changed files with 3 additions and 4 deletions
|
|
@ -20,6 +20,7 @@
|
|||
"dependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/preset-env": "^7.9.5",
|
||||
"concurrently": "^5.1.0",
|
||||
"express": "^4.17.1",
|
||||
"helmet": "^3.22.0",
|
||||
"moment": "^2.24.0",
|
||||
|
|
@ -27,8 +28,7 @@
|
|||
"reactstrap": "^8.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "^2.0.3",
|
||||
"concurrently": "^5.1.0"
|
||||
"nodemon": "^2.0.3"
|
||||
},
|
||||
"type": "module",
|
||||
"engines": {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ const app = express();
|
|||
// http port
|
||||
const PORT = process.env.PORT || 5000;
|
||||
// database connection key
|
||||
const db = process.env.MONGO_URI;
|
||||
const db = process.env.MONGO_URI; // || MONGO_URI;
|
||||
|
||||
// connection to database
|
||||
mongoose
|
||||
|
|
@ -27,7 +27,6 @@ app.use(express.json());
|
|||
app.use("/api/items/", items);
|
||||
|
||||
// Serve static assets in Production
|
||||
|
||||
if (process.env.NODE_ENV === "PRODUCTION") {
|
||||
app.use(express.static("client/build"));
|
||||
app.get("*", (req, res) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue