Skip to content

Commit 37ad689

Browse files
committed
update
1 parent fecfcae commit 37ad689

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Deploy to Render
2+
3+
on:
4+
push:
5+
branches:
6+
- master # or your deploy branch
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Trigger Render Deploy (Frontend)
13+
run: curl "${{ secrets.RENDER_DEPLOY_HOOK_FRONTEND }}"
14+
15+
- name: Trigger Render Deploy (Backend)
16+
run: curl "${{ secrets.RENDER_DEPLOY_HOOK_BACKEND }}"

backend/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ app.use(express.urlencoded({ extended: true }));
2424

2525
app.use(cors({ origin: '*' }))
2626

27-
const dbUrl = 'mongodb://localhost:27017/TaskManager';
28-
//process.env.DB_URL ||
27+
const dbUrl = process.env.DB_URL || 'mongodb://localhost:27017/TaskManager';
28+
//
2929
mongoose.connect(dbUrl);
3030

3131
const db = mongoose.connection;

frontend/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ VITE_FIREBASE_STORAGE_BUCKET=sap-admin-75f56.appspot.com
55
VITE_FIREBASE_MESSAGING_SENDER_ID=869658270029
66
VITE_FIREBASE_APP_ID=1:869658270029:web:7c0ed9d581218f9e773f04
77
VITE_FIREBASE_MEASUREMENT_ID=G-ZTXM4DHE49
8-
VITE_BASE_URL=http://localhost:3000/api
8+
VITE_BASE_URL=https://sap-checklist-backend.onrender.com/api

0 commit comments

Comments
 (0)