20 lines
		
	
	
		
			344 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			344 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
cd "$(dirname "$0")"
 | 
						|
 | 
						|
# Ensure all shell scripts are executable
 | 
						|
chmod +x *.sh
 | 
						|
 | 
						|
PREFIX="threefold"
 | 
						|
 | 
						|
echo "building for folder: /$PREFIX/"
 | 
						|
export NEXT_PUBLIC_BASE_PATH="/$PREFIX"
 | 
						|
 | 
						|
# mkdir -p "out"
 | 
						|
 | 
						|
# pnpm install --frozen-lockfile
 | 
						|
pnpm run build
 | 
						|
 | 
						|
# local mirror (optional)
 | 
						|
# rsync -rav --delete dist/ "${HOME}/hero/var/www/$PREFIX/"
 | 
						|
 |