Skip to content

Main#45

Merged
GhDj merged 6 commits into
developfrom
main
Apr 29, 2026
Merged

Main#45
GhDj merged 6 commits into
developfrom
main

Conversation

@GhDj
Copy link
Copy Markdown
Owner

@GhDj GhDj commented Apr 29, 2026

No description provided.

GhDj added 6 commits April 29, 2026 08:56
The deploy workflow's composer install runs package:discover as a
post-autoload-dump script, which boots the visitor-tracker package.
Its dashboard guard throws on boot if no auth method is configured,
and the GitHub runner sees none of the env vars from the server's
.env file — so the deploy step was failing before SFTP could run.

Set VISITOR_TRACKER_ALLOW_UNPROTECTED=true at the job level to mirror
prod posture (server's .env continues to drive runtime behavior; this
only unblocks the build).

Also removes a tracked local IDE config file that should not be in
version control.
hotfix: unblock deploy build (visitor-tracker auth env)
The visitor-tracker dashboard is admin-only and should be reached via
the package's own /admin/visitor-tracker route (gated by Cloudflare
Access in production). It should not be listed as a public tool on
the home page or sitemap.

- Drop the Visitor Tracker entry from the home tools grid.
- Remove the /tools/visitor-tracker route, sitemap entry,
  visitorTracker() controller method, and the public-facing view.
Most deploys only touch app/, routes/, or views — yet every deploy
re-uploads the entire vendor/ tree (hundreds of MB, thousands of
files), which dominates SFTP time. Make the heavy steps conditional:

- Diff against the previous release tag to see what actually changed.
- Run composer install (and ship vendor/) only when composer.json or
  composer.lock changed.
- Run npm ci + vite build only when package(-lock).json, vite.config,
  or resources/css|js changed. Vite hashes filenames, so leftover
  public/build/ files on the server are harmless.
- Source files (app/, routes/, resources/views/, etc.) still upload
  every time — they're cheap.

The SFTP action has delete_remote_files: false, so skipped uploads
leave the existing prod copies untouched.

Add a workflow_dispatch input 'force_full' for the override case
(e.g. recovering from a partial deploy or a server-side vendor wipe).
hotfix: drop public visitor-tracker + speed up deploy
@GhDj GhDj merged commit 86be1fb into develop Apr 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant