Compare commits

6 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
6943a6e9ba Update README.md 2025-02-10 12:24:56 +00:00
969884316d Merge branch 'main' of git.ourworld.tf:tfgrid/info_docs_depin 2025-02-10 15:18:33 +03:00
4ccc42e8a2 ... 2025-02-10 15:18:30 +03:00
798b797484 Update develop.sh 2025-02-07 16:09:11 +00:00
5 changed files with 42 additions and 50 deletions

View File

@@ -1,27 +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_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)
hero docusaurus -u https://git.ourworld.tf/tfgrid/info_docs_depin -d
```
to push
## Deploy Locally
```bash
hero docusaurus -u https://git.ourworld.tf/tfgrid/info_docs_depin -b
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.
#push for development:
hero docusaurus -u https://git.ourworld.tf/tfgrid/info_docs_depin -bd
```
hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -d
```
## Push Changes
- Development
```
hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -bpd
```
- Production
```bash
hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -bp
```
## URL
- The production website is available at `https://info.ourworld.tf/depin`
- The staging website is available at `https://info.ourworld.tf/depindev`
- 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,18 +0,0 @@
#!/bin/bash
set -e
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:$PATH
rm -rf /Users/despiegk/hero/var/docusaurus/build/
bun docusaurus build
rsync -rv --delete /Users/despiegk/hero/var/docusaurus/build/ root@info.ourworld.tf:/root/hero/www/info/depin/

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",
"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"
],
"copyright": "ThreeFold"
}

View File

@@ -1,14 +0,0 @@
#!/bin/bash
set -e
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:$PATH
bun run start -p 3100