An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(pre-commit): correct input redirection for /dev/tty and add OpenAPI generation command
Andras Bacsai41e874eb0505
diff --git a/hooks/pre-commit b/hooks/pre-commitindex 69a5a9d416..d083fdcbbc 100644--- a/hooks/pre-commit+++ b/hooks/pre-commit@@ -1,7 +1,7 @@#!/bin/sh# Detect whether /dev/tty is available & functionalif sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then- exec < /dev/tty+ exec </dev/ttyfi# Get list of stashed PHP files@@ -19,3 +19,5 @@ $(pwd)/vendor/bin/pint $files -qif [ $? -eq 0 ]; thengit add $filesfi++php artisan generate:openapi