Compare commits
10 Commits
b1570ad756
...
main-new
Author | SHA1 | Date | |
---|---|---|---|
|
926edb530e | ||
|
c111b501b7 | ||
6943a6e9ba | |||
969884316d | |||
4ccc42e8a2 | |||
798b797484 | |||
92f1feabd8 | |||
d58f37f78c | |||
137565b701 | |||
ce1cccd90b |
49
README.md
49
README.md
@@ -1,18 +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
|
```bash
|
||||||
#first time to get hero
|
curl https://raw.githubusercontent.com/freeflowuniverse/herolib/refs/heads/development/install_hero.sh > /tmp/install_hero.sh
|
||||||
curl 'https://raw.githubusercontent.com/freeflowuniverse/herolib/refs/heads/main/install_v.sh' > /tmp/install_v.sh
|
bash /tmp/install_hero.sh
|
||||||
bash /tmp/install_v.sh --analyzer --herolib
|
|
||||||
#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
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 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
|
||||||
|
```
|
||||||
|
|
||||||
|
## 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
|
## URL
|
||||||
|
|
||||||
- The production website is available at `https://info.ourworld.tf/depin`
|
- The website in staging mode is at https://dev.threefold.info/depin
|
||||||
- The staging website is available at `https://info.ourworld.tf/depindev`
|
- The website in production mode is at https://threefold.info/depin
|
18
build.sh
18
build.sh
@@ -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/
|
|
@@ -40,6 +40,5 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"copyright": "Copyright © 2025 ThreeFold"
|
|
||||||
}
|
}
|
||||||
|
@@ -11,6 +11,11 @@
|
|||||||
"image": "https://info.ourworld.tf/img/ourworld_depin.png",
|
"image": "https://info.ourworld.tf/img/ourworld_depin.png",
|
||||||
"title": "Introduction | DePIN Projects"
|
"title": "Introduction | DePIN Projects"
|
||||||
},
|
},
|
||||||
"buildDest": "root@info.ourworld.tf:/root/hero/www/info",
|
"buildDest": [
|
||||||
"buildDestDev": "root@info.ourworld.tf:/root/hero/www/infodev"
|
"root@info.ourworld.tf:/root/hero/www/info/depin"
|
||||||
|
],
|
||||||
|
"buildDestDev": [
|
||||||
|
"root@info.ourworld.tf:/root/hero/www/infodev/depin"
|
||||||
|
],
|
||||||
|
"copyright": "ThreeFold"
|
||||||
}
|
}
|
||||||
|
14
develop.sh
14
develop.sh
@@ -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
|
|
Reference in New Issue
Block a user