mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	@@ -26,10 +26,12 @@ NODE_VERSION="20" NODE_MODULE="gulp-cli,mocha,npm@10" setup_nodejs
 | 
				
			|||||||
fetch_and_deploy_gh_release "habitica" "HabitRPG/habitica" "tarball" "latest" "/opt/habitica"
 | 
					fetch_and_deploy_gh_release "habitica" "HabitRPG/habitica" "tarball" "latest" "/opt/habitica"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Setup ${APPLICATION}"
 | 
					msg_info "Setup ${APPLICATION}"
 | 
				
			||||||
 | 
					IPADDRESS=$(hostname -I | awk '{print $1}')
 | 
				
			||||||
cd /opt/habitica
 | 
					cd /opt/habitica
 | 
				
			||||||
$STD npm i
 | 
					$STD npm i
 | 
				
			||||||
$STD npm run postinstall
 | 
					$STD npm run postinstall
 | 
				
			||||||
cp config.json.example config.json
 | 
					cp config.json.example config.json
 | 
				
			||||||
 | 
					sed -i "s/\"TRUSTED_DOMAINS\": \"/&http:\/\/$IPADDRESS:3000,/" config.json
 | 
				
			||||||
$STD npm run client:build
 | 
					$STD npm run client:build
 | 
				
			||||||
$STD gulp build:prod
 | 
					$STD gulp build:prod
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user