Commit graph

4 commits

Author SHA1 Message Date
Vadym Samoilenko
d7bc3593a4 Use sudo for rm and cp in deploy.sh to fix permission errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 11:45:46 +00:00
Vadym Samoilenko
8113a2b37f Use sudo for chown in deploy.sh
The script runs as a non-root user; only the ownership change requires
elevated privileges. Using sudo chown instead of running the whole
script as root follows least-privilege principle.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 20:04:22 +00:00
Vadym Samoilenko
8cea336065 Fix deploy.sh self-copy bug that aborted build
Removed no-op `cp "$ENV_FILE" "$REPO_DIR/.env"` — both paths resolve to
the same file, causing cp to exit with code 1 under `set -euo pipefail`,
which aborted the script before npm ci or npm run build could run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 20:03:23 +00:00
Vadym Samoilenko
f145712998 Add Azure AD SSO authentication and deployment script
- Integrate MSAL (Azure AD) login gating the entire app
- Add deploy.sh for building and serving via Apache on Ubuntu
- Set Vite base path to /smartcrop26/ for subpath deployment
- Add .env.example with required environment variables

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 18:53:48 +00:00