Skip to content

Commit

Permalink
fix: xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Feb 3, 2023
1 parent c8624b8 commit 63ec8ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ set -x

cd /app || exit

if [ -f "install.lock" ];then
if [ ! -f "/app/expose/install.lock" ];then
# busuanzi js API address
if [ -n "$API_SERVER" ];then
sed -i "s/http:\/\/127.0.0.1:8080\/api/$API_SERVER/g" dist/busuanzi.js
fi

mv dist /app/expose/dist
mv config.yaml /app/expose/config.yaml
touch /app/expose/install.lock
fi

touch install.lock

exec /app/busuanzi -c ./expose/config.yaml -d ./expose/dist

0 comments on commit 63ec8ae

Please sign in to comment.