-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdeploy
executable file
·42 lines (32 loc) · 948 Bytes
/
deploy
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
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#
# As a preparation, a few other BitDust repositories need to be already prepared inside your home folder:
#
# cd ~
# git clone https://github.com/bitdust-io/public bitdust
# git clone https://github.com/bitdust-io/states bitdust.states
# git clone https://github.com/bitdust-io/docs.git bitdust.docs
# git clone https://github.com/bitdust-io/www.git bitdust.www
#
# Then you run the script to rebuild the web site files in-place:
#
# cd bitdust.www
# ./deploy
#
cd ~/bitdust/
git pull
cd ~/bitdust.docs/
git fetch --all
git reset --hard origin/master
python build_api.py ../bitdust/bitdust/interface/api.py api.md
python build_settings.py ../bitdust/ settings.md
python build_changelog.py ../bitdust/CHANGELOG.txt changelog.md
cd ~/bitdust.states/
git fetch --all
git reset --hard origin/master
cd ~/bitdust.www/
git fetch --all
git reset --hard origin/master
./build
./build_visual
echo "DONE!"