We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd2113 commit d4a83d1Copy full SHA for d4a83d1
.github/workflows/node.js.yml
@@ -26,3 +26,6 @@ jobs:
26
- run: npm ci
27
- run: npm run build --if-present
28
- run: pm2 restart api
29
+ - run: |
30
+ touch .env
31
+ echo "${{ secrets.MONGO_DB_URL }}" > .env
db/db.js
@@ -2,8 +2,7 @@ const mongoose = require("mongoose");
2
mongoose.set("strictQuery", false);
3
require("dotenv").config();
4
5
-const uri =
6
- "mongodb+srv://samin:[email protected]/?retryWrites=true&w=majority&appName=Cluster0";
+const uri = process.env.MONGO_DB_URL;
7
8
const connectDB = async () => {
9
try {
0 commit comments