diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e109da4..ab0d5b0 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Deploy Ladill Events +name: Deploy Ladill Mini on: push: @@ -10,7 +10,7 @@ permissions: contents: read concurrency: - group: deploy-events + group: deploy-mini cancel-in-progress: true jobs: @@ -19,9 +19,9 @@ jobs: env: NODE_ROOT: /tmp/ladill-node-22-r1 NODE_VERSION: "22.14.0" - RELEASE_ARCHIVE: /tmp/ladill-events-release-${{ gitea.run_id }}-${{ gitea.run_attempt }}.tgz - WORKSPACE: /tmp/${{ gitea.repository_owner }}-events-${{ gitea.run_id }}-${{ gitea.run_attempt }} - LADILL_APP_ROOT: /var/www/ladill-events + RELEASE_ARCHIVE: /tmp/ladill-mini-release-${{ gitea.run_id }}-${{ gitea.run_attempt }}.tgz + WORKSPACE: /tmp/${{ gitea.repository_owner }}-mini-${{ gitea.run_id }}-${{ gitea.run_attempt }} + LADILL_APP_ROOT: /var/www/ladill-mini steps: - name: Checkout shell: bash {0} @@ -78,7 +78,7 @@ jobs: - name: Deploy release shell: bash {0} env: - LADILL_RELEASE_ARCHIVE: /tmp/ladill-events-release-${{ gitea.run_id }}-${{ gitea.run_attempt }}.tgz + LADILL_RELEASE_ARCHIVE: /tmp/ladill-mini-release-${{ gitea.run_id }}-${{ gitea.run_attempt }}.tgz run: | set -Eeuo pipefail : "${LADILL_APP_ROOT:?Set LADILL_APP_ROOT}" @@ -93,11 +93,11 @@ jobs: NGINX_SCRIPT="/var/www/ladill.com/current/deployment/setup-service-subdomain-nginx.sh" fi if [ ! -f "$NGINX_SCRIPT" ]; then - echo "WARN: setup-service-subdomain-nginx.sh not found — configure events.ladill.com vhost manually" + echo "WARN: setup-service-subdomain-nginx.sh not found — configure mini.ladill.com vhost manually" exit 0 fi - if sudo -n bash "$NGINX_SCRIPT" events --app /var/www/ladill-events/current; then - echo "nginx vhost updated for events.ladill.com" + if sudo -n bash "$NGINX_SCRIPT" mini --app /var/www/ladill-mini/current; then + echo "nginx vhost updated for mini.ladill.com" else echo "WARN: nginx vhost step skipped (deploy user cannot sudo) — vhost must already be provisioned" fi diff --git a/config/ladill_launcher.php b/config/ladill_launcher.php index 38c9c0f..da80f50 100644 --- a/config/ladill_launcher.php +++ b/config/ladill_launcher.php @@ -32,5 +32,6 @@ return [ ['name' => 'Hosting', 'url' => 'https://hosting.'.$root, 'icon' => 'hosting.svg'], ['name' => 'QR Plus', 'url' => 'https://qrplus.'.$root.'/sso/connect?redirect='.urlencode('https://qrplus.'.$root.'/dashboard'), 'icon' => 'qrplus.svg'], ['name' => 'Events', 'url' => 'https://events.'.$root.'/sso/connect?redirect='.urlencode('https://events.'.$root.'/dashboard'), 'icon' => 'events.svg'], + ['name' => 'Mini', 'url' => 'https://mini.'.$root.'/sso/connect?redirect='.urlencode('https://mini.'.$root.'/dashboard'), 'icon' => 'mini.svg'], ], ];