From f861dcc3df2986545233dfc4507f736a3a126808 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 6 Aug 2025 03:32:07 +0000 Subject: [PATCH] Create build script for Hostinger deployment cgen-85000c4b3a264cffa9f4e69295cef872 --- build-for-hostinger.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 build-for-hostinger.sh diff --git a/build-for-hostinger.sh b/build-for-hostinger.sh new file mode 100644 index 00000000..2eeb390f --- /dev/null +++ b/build-for-hostinger.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +echo "๐Ÿš€ Building AeThex for Hostinger deployment..." + +# Clean previous builds +echo "๐Ÿงน Cleaning previous builds..." +rm -rf dist/ + +# Install dependencies +echo "๐Ÿ“ฆ Installing dependencies..." +npm install + +# Build the application +echo "๐Ÿ”จ Building client application..." +npm run build:client + +# Copy .htaccess to dist folder +echo "๐Ÿ“‹ Adding .htaccess for SPA routing..." +cp .htaccess dist/spa/ + +# Create deployment info +echo "๐Ÿ“„ Creating deployment info..." +cat > dist/spa/deployment-info.txt << EOF +AeThex Application - Hostinger Deployment +Built on: $(date) +Version: $(git rev-parse --short HEAD 2>/dev/null || echo "unknown") +Environment: Production + +Upload the contents of this folder to your Hostinger public_html directory. +EOF + +echo "โœ… Build complete!" +echo "" +echo "๐Ÿ“ Files ready for upload in: dist/spa/" +echo "๐ŸŒ Upload all contents to your Hostinger public_html folder" +echo "๏ฟฝ๏ฟฝ Make sure to configure your environment variables" +echo "" +echo "Next steps:" +echo "1. Upload dist/spa/* to Hostinger public_html" +echo "2. Configure DNS: core.aethex.biz โ†’ your Hostinger IP" +echo "3. Test at https://core.aethex.biz"