...
This commit is contained in:
		
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							| @@ -5,7 +5,7 @@ to run in development mode | |||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| #first time to get hero | #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 | bash /tmp/install_hero.sh | ||||||
| #DONT FORGET TO START A NEW SHELL (otherwise the paths will not be set) | #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 | to push | ||||||
|  |  | ||||||
| ```bash | ```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: | #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 | ## URL | ||||||
|  |  | ||||||
| - The production website is available at `https://info.ourworld.tf/depin` | - The production website is available at `https://threefold.info/depin` | ||||||
| - The staging website is available at `https://info.ourworld.tf/depindev` | - The staging website is available at `https://threefold.info/depindev` | ||||||
							
								
								
									
										12
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								build.sh
									
									
									
									
									
								
							| @@ -1,18 +1,22 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| set -e | set -ex | ||||||
|  |  | ||||||
| script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||||||
| cd "${script_dir}" | cd "$(script_dir}" | ||||||
|  |  | ||||||
| echo "Docs directory: $script_dir" | echo "Docs directory: $script_dir" | ||||||
|  |  | ||||||
| cd /Users/despiegk/hero/var/docusaurus | 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/ | rm -rf /Users/despiegk/hero/var/docusaurus/build/ | ||||||
|  |  | ||||||
|  | . /Users/despiegk/.zprofile  | ||||||
|  |  | ||||||
| bun docusaurus build | 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/ / | ||||||
|   | |||||||
| @@ -11,6 +11,6 @@ | |||||||
|     "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": ["root@info.ourworld.tf:/root/hero/www/info/depin"], | ||||||
|   "buildDestDev": "root@info.ourworld.tf:/root/hero/www/infodev" |   "buildDestDev": ["root@info.ourworld.tf:/root/hero/www/infodev/depin"] | ||||||
| } | } | ||||||
|   | |||||||
| @@ -9,6 +9,8 @@ echo "Docs directory: $script_dir" | |||||||
|  |  | ||||||
| cd /Users/despiegk/hero/var/docusaurus | 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 | bun run start -p 3100 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user