diff --git a/README.md b/README.md index d5c6b65..8e186f0 100644 --- a/README.md +++ b/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` \ No newline at end of file +- The production website is available at `https://threefold.info/depin` +- The staging website is available at `https://threefold.info/depindev` \ No newline at end of file diff --git a/build.sh b/build.sh index 01f750c..4f35876 100755 --- a/build.sh +++ b/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/ / diff --git a/cfg/main.json b/cfg/main.json index 59c90be..94b3184 100644 --- a/cfg/main.json +++ b/cfg/main.json @@ -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"] } diff --git a/develop.sh b/develop.sh index 1c42497..083b60a 100755 --- a/develop.sh +++ b/develop.sh @@ -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