Skip to content

Commit 77c6ba6

Browse files
committed
fix: more fixes for finding store mirror in production builds
1 parent 624133b commit 77c6ba6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bin/codeflare

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,9 @@ fi
9797
export KUI_ELECTRON_HOME="${KUI_ELECTRON_HOME-$NODE}"
9898
export CODEFLARE_HEADLESS_ZIP=$HEADLESS/../headless.zip
9999

100-
SCRIPTDIR=$(cd $(dirname "$0") && pwd)
101-
if [ -d "$SCRIPTDIR"/../store ]; then
100+
if [ -d "$HEADLESS"/../../store ]; then
102101
# development builds
103-
export GUIDEBOOK_STORE="$SCRIPTDIR"/../store
104-
elif [ -d "$SCRIPTDIR"/app/store ]; then
105-
# production builds
106-
export GUIDEBOOK_STORE="$SCRIPTDIR"/app/store
102+
export GUIDEBOOK_STORE="$HEADLESS"/../../store
107103
else
108104
# otherwise, we can't find a local mirror, so pull directly from
109105
# git (network transfers!)

0 commit comments

Comments
 (0)