Changeset d2b7247 in Klonkt for deploy/post-receive


Ignore:
Timestamp:
06/27/2026 09:53:29 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
907a013
Parents:
abdcf33
Message:

chore(branding): stale product names in comments + deploy templates -> Klonkt

Cosmetic only — comments (CSS/EJS/SQL/ecosystem.config.cjs headers) and the deploy/ doc
templates: old names (PrutCMS/PrutFolio) -> Klonkt, stale Prutter (removed DM feature) mentions
dropped, deploy/ Dutch comments translated to English. No code, identifiers, rendered strings,
package name, PWA id, real infra paths, or roboburr refs touched.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deploy/post-receive

    rabdcf33 rd2b7247  
    11#!/bin/bash
    2 # PrutFolio deploy-hook — werkt zoals logboek-hook.
    3 # Bare repo is single source of truth.
    4 # /srv/prutfolio is de working tree — gevuld via "git --work-tree=..."
    5 # (geen .git submap erin), zelfde patroon als logboek->celine.
     2# Klonkt deploy hook — works like the logboek hook.
     3# The bare repo is the single source of truth.
     4# /srv/prutfolio is the working tree — populated via "git --work-tree=..."
     5# (no .git subdir inside), same pattern as logboek->celine.
    66set -e
    77
     
    1414    echo ">>> Deploying $newrev to $DEPLOY"
    1515
    16     # 1. Heel zelden — als een eerdere bug git-internals los in $DEPLOY
    17     #    heeft gedumpt (HEAD/objects/refs op root), eenmalig opruimen
    18     #    zodat dit een echte working tree wordt.
     16    # 1. Very rarely — if an earlier bug dumped git internals loose into
     17    #    $DEPLOY (HEAD/objects/refs at the root), clean them up once so this
     18    #    becomes a real working tree.
    1919    if [ -f "$DEPLOY/HEAD" ] && [ -d "$DEPLOY/objects" ] && [ ! -d "$DEPLOY/.git" ]; then
    2020        echo "    cleanup: stale bare-init artifacts in $DEPLOY"
     
    2424    fi
    2525
    26     # 2. Force-checkout van bare-repo state naar working tree.
     26    # 2. Force-checkout the bare-repo state into the working tree.
    2727    git --git-dir="$GIT_DIR" --work-tree="$DEPLOY" checkout -f main
    2828
    29     # 3. npm install alleen als package-lock.json wijzigde.
     29    # 3. npm install only when package-lock.json changed.
    3030    if [ -n "$oldrev" ] && [ "$oldrev" != "0000000000000000000000000000000000000000" ]; then
    3131        if git --git-dir="$GIT_DIR" diff --name-only "$oldrev" "$newrev" | grep -q "^package-lock.json$"; then
     
    3838    pm2 reload klonkt 2>/dev/null || true
    3939
    40     echo ">>> Done. App-files in $DEPLOY ongemoeid (.env, node_modules, storage)."
     40    echo ">>> Done. App files in $DEPLOY left untouched (.env, node_modules, storage)."
    4141done
Note: See TracChangeset for help on using the changeset viewer.