...
This commit is contained in:
parent
92f1feabd8
commit
4ccc42e8a2
10
README.md
10
README.md
@ -5,7 +5,7 @@ to run in development mode
|
||||
|
||||
```bash
|
||||
#first time to get hero
|
||||
curl https://raw.githubusercontent.com/freeflowuniverse/herolib/refs/heads/development_kristof10/install_hero.sh > /tmp/install_hero.sh
|
||||
curl https://raw.githubusercontent.com/freeflowuniverse/herolib/refs/heads/development/install_hero.sh > /tmp/install_hero.sh
|
||||
bash /tmp/install_hero.sh
|
||||
#DONT FORGET TO START A NEW SHELL (otherwise the paths will not be set)
|
||||
|
||||
@ -15,13 +15,13 @@ hero docusaurus -u https://git.ourworld.tf/tfgrid/info_docs_depin -d
|
||||
to push
|
||||
|
||||
```bash
|
||||
hero docusaurus -u https://git.ourworld.tf/tfgrid/info_docs_depin -b
|
||||
hero docusaurus -u https://git.ourworld.tf/tfgrid/info_docs_depin -bp -update
|
||||
|
||||
#push for development:
|
||||
hero docusaurus -u https://git.ourworld.tf/tfgrid/info_docs_depin -bd
|
||||
hero docusaurus -u https://git.ourworld.tf/tfgrid/info_docs_depin -bpd -update
|
||||
```
|
||||
|
||||
## URL
|
||||
|
||||
- The production website is available at `https://info.ourworld.tf/depin`
|
||||
- The staging website is available at `https://info.ourworld.tf/depindev`
|
||||
- The production website is available at `https://threefold.info/depin`
|
||||
- The staging website is available at `https://threefold.info/depindev`
|
12
build.sh
12
build.sh
@ -1,18 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -ex
|
||||
|
||||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "${script_dir}"
|
||||
cd "$(script_dir}"
|
||||
|
||||
echo "Docs directory: $script_dir"
|
||||
|
||||
cd /Users/despiegk/hero/var/docusaurus
|
||||
|
||||
export PATH=/tmp/docusaurus_build/node_modules/.bin:$PATH
|
||||
export PATH=/tmp/docusaurus_build/node_modules/.bin:${HOME}/.bun/bin/:$PATH
|
||||
|
||||
rm -rf /Users/despiegk/hero/var/docusaurus/build/
|
||||
|
||||
. /Users/despiegk/.zprofile
|
||||
|
||||
bun docusaurus build
|
||||
|
||||
rsync -rv --delete /Users/despiegk/hero/var/docusaurus/build/ root@info.ourworld.tf:/root/hero/www/info/depin/
|
||||
mkdir -p
|
||||
echo SYNC TO
|
||||
rsync -rv --delete /Users/despiegk/hero/var/docusaurus/build/ /
|
||||
|
@ -11,6 +11,6 @@
|
||||
"image": "https://info.ourworld.tf/img/ourworld_depin.png",
|
||||
"title": "Introduction | DePIN Projects"
|
||||
},
|
||||
"buildDest": "root@info.ourworld.tf:/root/hero/www/info",
|
||||
"buildDestDev": "root@info.ourworld.tf:/root/hero/www/infodev"
|
||||
"buildDest": ["root@info.ourworld.tf:/root/hero/www/info/depin"],
|
||||
"buildDestDev": ["root@info.ourworld.tf:/root/hero/www/infodev/depin"]
|
||||
}
|
||||
|
@ -9,6 +9,8 @@ echo "Docs directory: $script_dir"
|
||||
|
||||
cd /Users/despiegk/hero/var/docusaurus
|
||||
|
||||
export PATH=/tmp/docusaurus_build/node_modules/.bin:$PATH
|
||||
export PATH=/tmp/docusaurus_build/node_modules/.bin:${HOME}/.bun/bin/:$PATH
|
||||
|
||||
. /Users/despiegk/.zprofile
|
||||
|
||||
bun run start -p 3100
|
||||
|
Loading…
Reference in New Issue
Block a user