Skip to content

Commit e6d0fa4

Browse files
committed
fix: codeflare launcher does not always get new location of store right
1 parent c398163 commit e6d0fa4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bin/codeflare

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ fi
100100
export KUI_ELECTRON_HOME="${KUI_ELECTRON_HOME-$NODE}"
101101

102102
if [ -z "$GUIDEBOOK_STORE" ]; then
103-
if [ -d "$HEADLESS"/../../node_modules/@guidebooks/store ]; then
103+
if [ -d "$HEADLESS"/../../node_modules/@guidebooks/store/dist/store ]; then
104104
# development builds
105-
export GUIDEBOOK_STORE="$HEADLESS"/../../store
106-
elif [ -d "$HEADLESS"/store ]; then
105+
export GUIDEBOOK_STORE="$HEADLESS"/../../node_modules/@guidebooks/store/dist/store
106+
elif [ -d "$HEADLESS"/store/dist/store ]; then
107107
# docker builds
108108
export GUIDEBOOK_STORE="$HEADLESS"/store
109109
else

deploy/cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV CODEFLARE_HEADLESS_HOME=/usr/local/CodeFlare
77

88
# TODO hard-coded arch
99
ADD dist/headless /usr/local/CodeFlare
10-
ADD node_modules/@guidebooks/store /usr/local/CodeFlare/store
10+
ADD node_modules/@guidebooks/store/dist/store /usr/local/CodeFlare/store
1111
ADD bin/codeflare /usr/local/bin/codeflare
1212

1313
RUN apt update && apt -y install python3 python3-pip sudo curl \

deploy/log-aggregator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV CODEFLARE_HEADLESS_HOME=/usr/local/CodeFlare
77

88
# TODO hard-coded arch
99
ADD dist/headless /usr/local/CodeFlare
10-
ADD node_modules/@guidebooks/store /usr/local/CodeFlare/store
10+
ADD node_modules/@guidebooks/store/dist/store /usr/local/CodeFlare/store
1111
ADD bin/codeflare /usr/local/bin/codeflare
1212
ADD deploy/log-aggregator/wait-for.sh /usr/local/bin/wait-for
1313
ADD deploy/log-aggregator/wait-for-and-cat.sh /usr/local/bin/wait-for-and-cat

0 commit comments

Comments
 (0)