Skip to content

Commit bd3d054

Browse files
committed
Removed ox.exit() for testing)
1 parent 2bbc4c4 commit bd3d054

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

docker-compose.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ services:
44
app:
55
image: cornellappdev/hustle-dev:${IMAGE_TAG}
66
env_file: .env
7+
volumes:
8+
- ./service-account-key.json:/service-account-key.json
79
ports:
8-
- "8080:8080"
9-
restart: unless-stopped
10+
- target: 8080
11+
published: 8080
12+
protocol: tcp
13+
mode: host
14+
restart: unless-stopped
15+
deploy:
16+
replicas: 1
17+
placement:
18+
constraints:
19+
- node.role == manager

main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,17 @@ func main() {
2424
// Connect to DB
2525
if err := models.ConnectDatabase(); err != nil {
2626
log.Printf("[FATAL] Database connection failed: %v", err)
27-
os.Exit(1)
2827
}
2928

3029
// Initialize Firebase Auth SAFELY
3130
serviceAccountPath := "service-account-key.json"
3231
// Log working dir and check file exists
3332
if _, err := os.Stat(serviceAccountPath); err != nil {
3433
log.Printf("[FATAL] Missing service account file: %s (cwd: %s): %v", serviceAccountPath, getwdSafe(), err)
35-
os.Exit(1)
3634
}
3735
ac, err := auth.NewAuthClient(context.Background(), serviceAccountPath)
3836
if err != nil {
3937
log.Printf("[FATAL] Firebase init failed: %v", err)
40-
os.Exit(1)
4138
}
4239

4340

0 commit comments

Comments
 (0)