From dba067b09ffb419221a2816737df6d0e4fc18de3 Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Thu, 14 Aug 2025 15:12:21 +0200 Subject: [PATCH] Add executable permissions for shell scripts - no need to run chmod +x anymore --- build.sh | 18 ++++++++++++++++++ install.sh | 23 +++++++++++++++++++++++ start.sh | 16 ++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100755 build.sh create mode 100755 install.sh create mode 100755 start.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..6c38072 --- /dev/null +++ b/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash +cd "$(dirname "$0")" + +PREFIX="indaba" + +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/" + +# deploy to threefold server +rsync -avz --delete out/ "root@threefold.info:/root/hero/www/info/$PREFIX/" \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..60c6c0f --- /dev/null +++ b/install.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Radiant Website - Installation Script +# This script installs all dependencies using pnpm + +# Check if Node.js is installed +if ! command -v node &> /dev/null; then + echo "❌ Node.js is not installed. Please install Node.js first." + exit 1 +fi + +# Check if pnpm is installed +if ! command -v pnpm &> /dev/null; then + echo "📦 Installing pnpm..." + npm install -g pnpm +fi + +echo "📋 Node.js version: $(node --version)" +echo "📋 pnpm version: $(pnpm --version)" + +# Install dependencies +echo "📦 Installing project dependencies..." +pnpm install \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..3a0dd65 --- /dev/null +++ b/start.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Radiant Website - Development Server +# This script starts the development server with hot reload + +echo "🚀 Starting Radiant Website Development Server..." +echo "================================================" + +# Check if node_modules exists +if [ ! -d "node_modules" ]; then + echo "❌ Dependencies not installed. Please run './install.sh' first." + exit 1 +fi + +# Start the development server +pnpm run dev \ No newline at end of file