Compare commits

...

2 Commits

Author SHA1 Message Date
mik-tf
926edb530e update docs_depin 2025-03-07 08:09:06 -05:00
mik-tf
c111b501b7 updafe cfg 2025-02-11 22:25:54 -05:00
5 changed files with 40 additions and 53 deletions

View File

@ -1,26 +1,47 @@
<h1>ThreeFold DePIN Board</h1>
<h1> ThreeFold DePIN Cloud Website</h1>
<h2>Table of Contents</h2>
to run in development mode
- [Introductiona](#introductiona)
- [Install Hero](#install-hero)
- [Deploy Locally](#deploy-locally)
- [Push Changes](#push-changes)
- [URL](#url)
---
## Introductiona
This repository contains the code to deploy the ThreeFold DePIN Cloud website.
## Install Hero
```bash
#first time to get hero
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)
```
## Deploy Locally
You can run the website in your development environment on a local browser. Make sure to start a new shell if you've just installed Hero.
```
hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -d
```
to push
## Push Changes
```bash
hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -bp -update
- Development
```
hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -bpd
```
- Production
#push for development:
hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -bpd -update
```
```bash
hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -bp
```
## URL
- The production website is available at `https://threefold.info/depin`
- The website in staging mode is at https://dev.threefold.info/depin
- The website in production mode is at https://threefold.info/depin

View File

@ -1,22 +0,0 @@
#!/bin/bash
set -ex
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$(script_dir}"
echo "Docs directory: $script_dir"
cd /Users/despiegk/hero/var/docusaurus
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
mkdir -p
echo SYNC TO
rsync -rv --delete /Users/despiegk/hero/var/docusaurus/build/ /

View File

@ -40,6 +40,5 @@
}
]
}
],
"copyright": "Copyright © 2025 ThreeFold"
]
}

View File

@ -11,6 +11,11 @@
"image": "https://info.ourworld.tf/img/ourworld_depin.png",
"title": "Introduction | DePIN Projects"
},
"buildDest": ["root@info.ourworld.tf:/root/hero/www/info/depin"],
"buildDestDev": ["root@info.ourworld.tf:/root/hero/www/infodev/depin"]
"buildDest": [
"root@info.ourworld.tf:/root/hero/www/info/depin"
],
"buildDestDev": [
"root@info.ourworld.tf:/root/hero/www/infodev/depin"
],
"copyright": "ThreeFold"
}

View File

@ -1,16 +0,0 @@
#!/bin/bash
set -e
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${script_dir}"
echo "Docs directory: $script_dir"
cd ~/hero/var/docusaurus
export PATH=/tmp/docusaurus_build/node_modules/.bin:${HOME}/.bun/bin/:$PATH
. /Users/despiegk/.zprofile
bun run start -p 3100