This commit is contained in:
Tiemen van Olst
2025-09-08 15:32:14 +02:00
parent 8e29c971d5
commit bac490acb3
2 changed files with 4 additions and 37 deletions

View File

@@ -1,25 +1,20 @@
#!/bin/sh
#!/bin/bash
set -e
# Clone of pull repo
# Clone repo als die nog niet bestaat
if [ ! -d ".git" ]; then
echo "Cloning repo..."
git clone -b ${GIT_BRANCH:-main} ${GIT_REPO_URL} .
else
echo "Pulling latest changes..."
git reset --hard
git clean -fd
git pull origin ${GIT_BRANCH:-main}
fi
# Dependencies
echo "Installing dependencies..."
npm install
npm ci
# Build
echo "Building Nuxt app..."
npm run build
# Start
echo "Starting Nuxt app..."
# Start Nuxt
exec npm run start