Skip to content

Commit a771f1f

Browse files
committedSep 24, 2019
[docker] Moving frontend grunt to postinstall
1 parent e2075b1 commit a771f1f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎bin/docker/cmd.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ case "$COUNTLY_CONTAINER" in
88
;;
99

1010
"frontend" )
11-
npx grunt dist-all
12-
exec /usr/local/bin/node /opt/countly/frontend/express/app.js
11+
exec /usr/local/bin/node /opt/countly/frontend/express/app.js
1312
;;
1413

1514
* )

‎bin/docker/postinstall.sh

+5
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@ else
2323
/usr/local/bin/node "/opt/countly/plugins/$plugin/install.js"
2424
echo "[docker] Done installing ${plugin}."
2525
done <<< "$a"
26+
27+
if [ "$COUNTLY_CONTAINER" == "frontend" ]; then
28+
(cd /opt/countly && npx grunt dist-all)
29+
fi
30+
2631
fi

0 commit comments

Comments
 (0)
Please sign in to comment.