Add executable permissions for shell scripts - no need to run chmod +x anymore
This commit is contained in:
18
build.sh
Executable file
18
build.sh
Executable file
@@ -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/"
|
23
install.sh
Executable file
23
install.sh
Executable file
@@ -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
|
16
start.sh
Executable file
16
start.sh
Executable file
@@ -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
|
Reference in New Issue
Block a user