Mise a jour Gitignore

This commit is contained in:
karim hassan
2025-08-24 15:18:05 +00:00
parent 3c13a129dc
commit 2d62b1da56
2 changed files with 32 additions and 7 deletions

21
.env Normal file
View File

@@ -0,0 +1,21 @@
# === Super Sunday PROD Environment ===
NODE_ENV=production
PORT=8080
# Database
POSTGRES_DB=supersunday
POSTGRES_USER=supersunday
POSTGRES_PASSWORD=Sup3rSund@y2025!
DATABASE_URL=postgres://supersunday:Sup3rSund@y2025!@db:5432/supersunday
# API / Auth
JWT_SECRET=Sup3rSundayUltraSecretKey_2025
CORS_ORIGIN=http://localhost:8080
# Admin credentials
ADMIN_EMAIL=admin@supersunday.app
ADMIN_PASSWORD=ChangeMeNow!42
# Branding
APP_NAME="Super Sunday Padel Championship"
CLUB_NAME="Les Églantiers, Woluwe-Saint-Pierre"

View File

@@ -15,19 +15,23 @@ else
git checkout -b main
fi
# 2) s'assurer que 'origin' existe
# 2) vérifier remote
git remote get-url origin >/dev/null 2>&1 || {
echo "❌ Pas de remote 'origin'. Fais: git remote add origin <URL>"; exit 1; }
# 3) s'assurer que le script est committé même s'il est ignoré
# - check s'il est ignoré
# 3) forcer lajout du script même sil est ignoré
if git check-ignore -q "$SCRIPT_NAME"; then
echo " $SCRIPT_NAME est ignoré par .gitignore → ajout forcé (-f)"
echo " $SCRIPT_NAME est ignoré par .gitignore → ajout forcé"
git add -f "$SCRIPT_NAME"
else
git add "$SCRIPT_NAME"
fi
# 4) stage global (ajoute le reste)
git add -A
# 4) ajouter tout le reste sauf les fichiers indésirables
git add . \
':!*.DS_Store' \
':!*.AppleDouble' \
':!*.LSOverride'
# 5) commit si nécessaire
if git diff --cached --quiet; then
@@ -37,7 +41,7 @@ else
echo "✅ Commit créé: $MSG"
fi
# 6) push sur main (crée lupstream si besoin)
# 6) push
if git rev-parse --abbrev-ref main@{u} >/dev/null 2>&1; then
git push origin main
else