File size: 550 Bytes
0d5e9a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4556150
0d5e9a2
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/bash
set -ex

while [[ $# -gt 0 ]]; do
  key="$1"
  case $key in
    --update-config-template)
      UPDATE_CONFIG_TEMPLATE=true
      shift
      ;;
    *)
      # unknown option
      shift
      ;;
  esac
done

rm -rf static

wget -O dist.tar.gz https://public-frontend-1300249583.cos.ap-nanjing.myqcloud.com/test-hp-metagpt-web/dist-20240117181055.tar.gz
tar xvzf dist.tar.gz
mv dist static
rm dist.tar.gz

if [ "$UPDATE_CONFIG_TEMPLATE" = true ]; then
    rm static/config.yaml
    ln -s ../config/template.yaml static/config.yaml
fi