Skip to content

Commit 2531067

Browse files
authored
Merge pull request #1132 from joshunrau/docker
fix: non-POSIX-compliant script that worked on Alpine but causes issues on Debian (wtf!)
2 parents 6235892 + cafd9f0 commit 2531067

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/gateway/scripts/run.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/bin/sh
22

3+
set -eu
4+
35
DATABASE_FILE=${GATEWAY_DATABASE_URL#file:}
46
EMPTY_DATABASE_FILE="/app/gateway.tmpl.db"
57

6-
if [[ ! -f "$DATABASE_FILE" ]]; then
8+
if [ ! -f "$DATABASE_FILE" ]; then
79
cp "$EMPTY_DATABASE_FILE" "$DATABASE_FILE"
810
fi
911

10-
node ./dist/main.js
12+
exec node ./dist/main.js

apps/gateway/src/entry-client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ReactDOM from 'react-dom/client';
33

44
import { Root } from './Root';
55

6-
import '@douglasneuroinformatics/libui/tailwind/globals.css';
6+
import '@opendatacapture/react-core/globals.css';
77

88
const ROOT_PROPS = window.__ROOT_PROPS__;
99

0 commit comments

Comments
 (0)