Updating Pivor

Keep your Pivor installation up to date with the latest features and security fixes.

Docker Update

1

Pull Latest Changes

cd pivor
git pull origin main
2

Rebuild and Restart

docker compose build --no-cache
docker compose up -d
Your data is preserved in Docker volumes

Local Development Update

1

Pull Latest Changes

cd pivor
git stash # Save local changes (optional)
git pull origin main
git stash pop # Restore changes (if stashed)
2

Update Dependencies

composer install
npm install
3

Build and Migrate

npm run build
php artisan migrate
php artisan config:cache

Troubleshooting

"Local changes would be overwritten"

If you see this error when running git pull:

error: Your local changes to the following files would be overwritten by merge

This means some tracked files were modified locally. You have two options:

Option 1: Preserve Changes

git stash
git pull origin main
git stash pop

Saves your local changes and restores them after pulling.

Option 2: Discard Changes

git fetch --all
git reset --hard origin/main

Discards all local modifications to tracked files.

After Updating

If you encounter issues after updating, try clearing and regenerating caches:

# Clear all caches
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear

# Regenerate caches
php artisan config:cache
php artisan route:cache
php artisan view:cache

Check for New Environment Variables

After major updates, compare your .env file with .env.example to see if any new configuration options have been added.