Skip to content

Laravel Cloud

Build commands

shell
composer install --no-dev --prefer-dist --optimize-autoloader --classmap-authoritative --no-interaction

# Write git hash to file for Sentry BEFORE we cache our configuration
echo "$(git rev-parse HEAD)" > .commit_hash

npm ci --audit false
npm run production

php artisan icons:cache
php artisan data:cache-structures

Deploy commands

shell
php artisan backup:run --isolated
php artisan migrate --force
php artisan operations:process --force --isolated
php artisan pennant:purge
php artisan schedule-monitor:sync

curl https://sentry.io/api/0/organizations/qbixx/releases/ \
  -X POST \
  -H "Authorization: Bearer AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d "$(jq -n --arg version "$(cat .commit_hash)" '{version: $version}')"