Skip to content

Commit 14e0ef5

Browse files
committed
resolve user-express issues on docker compose
1 parent f14a68c commit 14e0ef5

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

backend/user/entrypoint.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
#!/bin/sh
2-
3-
if [ ! -f .db-init ]; then
4-
echo "migrating..."
5-
npm run db:prod:migrate
6-
echo "seeding..."
7-
npm run db:prod:seed
8-
touch .db-init
2+
if [ ! -f db-init ]
3+
then
4+
echo "migrating..."
5+
npm run db:prod:migrate
6+
echo "migration complete"
7+
echo "seeding..."
8+
npm run db:prod:seed
9+
echo "seeding complete"
10+
touch .db-init
11+
echo "db-init created"
912
fi
1013

1114
npm run start

scripts/ensure-volume.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
check_or_create_docker_volume() {
44
local volume_name=$1

0 commit comments

Comments
 (0)