Mise a jour Gitignore
This commit is contained in:
21
.env
Normal file
21
.env
Normal 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"
|
||||
@@ -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 l’ajout du script même s’il 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 l’upstream si besoin)
|
||||
# 6) push
|
||||
if git rev-parse --abbrev-ref main@{u} >/dev/null 2>&1; then
|
||||
git push origin main
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user