File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ COPY src/config.ts ./src
21
21
COPY tsconfig.json .
22
22
COPY entrypoint.sh .
23
23
24
-
25
24
ARG port
26
25
EXPOSE ${port}
27
26
ENTRYPOINT [ "/bin/sh" , "entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const seedQuestions = async () => {
9
9
const seedRecords = await trx . select ( ) . from ( adminTable ) . where ( eq ( adminTable . action , 'SEED' ) ) ;
10
10
if ( seedRecords && seedRecords . length > 0 ) {
11
11
console . info (
12
- `[Users ]: Seeded already at: ${ ( seedRecords [ seedRecords . length - 1 ] . createdAt ?? new Date ( ) ) . toLocaleString ( ) } `
12
+ `[Questions ]: Seeded already at: ${ ( seedRecords [ seedRecords . length - 1 ] . createdAt ?? new Date ( ) ) . toLocaleString ( ) } `
13
13
) ;
14
14
return ;
15
15
}
@@ -32,6 +32,7 @@ const seedQuestions = async () => {
32
32
. values ( { ...question , id : undefined } ) // Let DB set ID
33
33
. onConflictDoNothing ( ) ;
34
34
}
35
+ await trx . insert ( adminTable ) . values ( { action : 'SEED' } ) ;
35
36
} ) ;
36
37
} catch ( error ) {
37
38
console . log ( '[Questions]: Error seeding question data' , error ) ;
Original file line number Diff line number Diff line change 2
2
3
3
services :
4
4
# Databases
5
-
6
5
user-db :
7
6
hostname : " user-db"
8
7
image : postgres:16.4
@@ -64,7 +63,6 @@ services:
64
63
timeout : 10s
65
64
66
65
# Services
67
-
68
66
user-service :
69
67
image : " user-express"
70
68
container_name : " user-express"
@@ -74,7 +72,6 @@ services:
74
72
target : production
75
73
args :
76
74
# For building with the correct env vars
77
- - env=${USER_EXPRESS_ENV}
78
75
- port=${USER_EXPRESS_PORT}
79
76
ports :
80
77
- " 9001:${USER_EXPRESS_PORT}"
@@ -107,7 +104,6 @@ services:
107
104
target : production
108
105
args :
109
106
# For building with the correct env vars
110
- - env=${QUESTION_EXPRESS_ENV}
111
107
- port=${QUESTION_EXPRESS_PORT}
112
108
ports :
113
109
- " 9002:${QUESTION_EXPRESS_PORT}"
You can’t perform that action at this time.
0 commit comments