Delete
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user