Skip to content

Commit 3ac13e0

Browse files
cicd corrections for build time env loading
1 parent aee9220 commit 3ac13e0

File tree

3 files changed

+23
-30
lines changed

3 files changed

+23
-30
lines changed

.env.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MONGODB_URI=
22
JWT_SECRET=
33

4-
SYSTEM_MAIL=
5-
SYSTEM_MAIL_PASS=
4+
# SYSTEM_MAIL=
5+
# SYSTEM_MAIL_PASS=
66

7-
HASH_SECRET=
7+
# HASH_SECRET=

app/authenticate/page.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const dynamic = "force-dynamic";
2+
13
import { connectToDatabase } from "@/app/lib/mongodb";
24
import Institute from "@/app/models/Institute";
35
import AuthForm from "./AuthForm";
@@ -12,7 +14,7 @@ const Page = async () => {
1214
// Return only names of Institues
1315
const institutes = await Institute.find({}, { _id: 0, name: 1, code: 1 });
1416

15-
return <AuthForm institutes={institutes} />;
17+
return <AuthForm institutes={JSON.parse(JSON.stringify(institutes))} />;
1618
};
1719

1820
export default Page;

docker-compose.yml

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,26 @@
11
version: "3.8"
22

33
services:
4-
app:
5-
image: travel-buddy-metakgp
6-
container_name: travel-buddy-metakgp-app
7-
ports:
8-
- "3000:3000"
4+
travel-buddy:
5+
image: metakgporg/travel-buddy
6+
container_name: travel-buddy-app
7+
build: .
8+
restart: always
99
env_file:
1010
- .env
11-
12-
services:
13-
travel-buddy:
14-
image: metakgporg/travel-buddy
15-
container_name: travel-buddy-app
16-
build: .
17-
restart: always
18-
env_file:
19-
- .env
20-
networks:
21-
metaploy-network:
22-
aliases:
23-
- travel-buddy
24-
volumes:
25-
- nginx-config-volume:/etc/nginx/sites-enabled
11+
networks:
12+
metaploy-network:
13+
aliases:
14+
- travel-buddy
15+
volumes:
16+
- nginx-config-volume:/etc/nginx/sites-enabled
2617

2718
networks:
28-
metaploy-network:
29-
external: true
30-
name: metaploy-network
19+
metaploy-network:
20+
external: true
21+
name: metaploy-network
3122

3223
volumes:
33-
nginx-config-volume:
34-
external: true
35-
name: metaploy-nginx-config-volume
24+
nginx-config-volume:
25+
external: true
26+
name: metaploy-nginx-config-volume

0 commit comments

Comments
 (0)