# MauzoTrack 1.0 — Namecheap Production Deployment

This release is **MauzoTrack 1.0 (Build 37)**. The numbered 1.0.x sequence before launch was development build progression.

## Production paths

- Application root: `/home/<cpanel-user>/app.sheanpackaging.com`
- Public document root: `/home/<cpanel-user>/app.sheanpackaging.com/public`
- URL: `https://app.sheanpackaging.com`
- PHP: 8.2+

## Upgrade from an existing MauzoTrack installation

1. Create/download a verified MauzoTrack backup first.
2. Preserve the live `.env`, database, and persistent media directory. **Do not overwrite `.env` with either example file.**
3. Upload/extract the release over the application root, keeping `public` as the domain document root.
4. From SSH in the application root run:

```bash
php composer.phar install --no-dev --no-interaction --prefer-dist --optimize-autoloader
php artisan down
php artisan migrate --force
php artisan optimize
php artisan up
```

If Composer is installed globally, `composer install ...` may be used instead.

## Scheduler / automatic backups

Add one cPanel Cron Job that runs every minute:

```bash
cd /home/<cpanel-user>/app.sheanpackaging.com && /usr/local/bin/php artisan schedule:run >> /dev/null 2>&1
```

If `/usr/local/bin/php` is not the account's PHP 8.2 binary, use the exact PHP CLI path shown by `which php` over SSH. Laravel will trigger the configured daily MauzoTrack backup at 23:30; the cron job itself does not create a backup every minute.

## Production checks

```bash
php artisan mauzotrack:version
php artisan migrate:status
php artisan schedule:list
php artisan config:show app
```

Expected product identity: **MauzoTrack 1.0 (Build 37)**. Keep `APP_DEBUG=false`, HTTPS active, and production credentials only in the live `.env`.
