Laravel Cloud
Production
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 build
php artisan icons:cache
php artisan data:cache-structuresDeploy commands
shell
php artisan migrate --force
php artisan operations:process --force --isolated
php artisan pennant:purge
php artisan schedule-monitor:sync
echo "Tagging Sentry release"
VERSION=$(cat .commit_hash)
curl -sS https://sentry.io/api/0/organizations/qbixx/releases/ \
-X POST \
-H "Authorization: Bearer AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"version\": \"$VERSION\", \"projects\": [\"smarthealth-app\"]}"
echo
echoQA
Build commands
shell
composer install --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 build
php artisan icons:cache
php artisan data:cache-structuresDeploy commands
shell
php artisan db:seed:load --force --no-interaction
php artisan migrate --force --no-interaction
php artisan db:seed --class=MediaSeeder --force --no-interaction
php artisan db:seed --class=InteractionSeeder --no-interaction
php artisan operations:process --force --isolated
php artisan pennant:purge
echo "Creating Sentry release"
VERSION=$(cat .commit_hash)
curl -sS https://sentry.io/api/0/organizations/qbixx/releases/ \
-X POST \
-H "Authorization: Bearer AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"version\": \"$VERSION\", \"projects\": [\"smarthealth-app\"]}"
echo
echo