Delete
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
version: '3.9'
|
|
||||||
|
|
||||||
services:
|
|
||||||
nuxt-app:
|
|
||||||
build: .
|
|
||||||
container_name: nuxt-app
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
- NODE_ENV=production
|
|
||||||
- GIT_REPO_URL=${GIT_REPO_URL}
|
|
||||||
- GIT_BRANCH=${GIT_BRANCH}
|
|
||||||
volumes:
|
|
||||||
- nuxt-app-data:/app
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.nuxt-app.rule=Host(`app.tiemen.dev`)"
|
|
||||||
- "traefik.http.routers.nuxt-app.entrypoints=websecure"
|
|
||||||
- "traefik.http.routers.nuxt-app.tls.certresolver=myresolver"
|
|
||||||
- "traefik.http.services.nuxt-app.loadbalancer.server.port=3000"
|
|
||||||
networks:
|
|
||||||
- web
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
nuxt-app-data:
|
|
||||||
|
|
||||||
networks:
|
|
||||||
web:
|
|
||||||
external: true
|
|
||||||
@@ -1,25 +1,20 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Clone of pull repo
|
# Clone repo als die nog niet bestaat
|
||||||
if [ ! -d ".git" ]; then
|
if [ ! -d ".git" ]; then
|
||||||
echo "Cloning repo..."
|
|
||||||
git clone -b ${GIT_BRANCH:-main} ${GIT_REPO_URL} .
|
git clone -b ${GIT_BRANCH:-main} ${GIT_REPO_URL} .
|
||||||
else
|
else
|
||||||
echo "Pulling latest changes..."
|
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git clean -fd
|
git clean -fd
|
||||||
git pull origin ${GIT_BRANCH:-main}
|
git pull origin ${GIT_BRANCH:-main}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
echo "Installing dependencies..."
|
npm ci
|
||||||
npm install
|
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
echo "Building Nuxt app..."
|
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
# Start
|
# Start Nuxt
|
||||||
echo "Starting Nuxt app..."
|
|
||||||
exec npm run start
|
exec npm run start
|
||||||
Reference in New Issue
Block a user