Compare commits
6 Commits
92f1feabd8
...
main-new
Author | SHA1 | Date | |
---|---|---|---|
|
926edb530e | ||
|
c111b501b7 | ||
6943a6e9ba | |||
969884316d | |||
4ccc42e8a2 | |||
798b797484 |
48
README.md
48
README.md
@@ -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
|
||||
|
||||
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/info_docs_depin -b
|
||||
|
||||
#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 -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
|
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",
|
||||
"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"
|
||||
}
|
||||
|
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