Add gitignore for sensitive files and Docker Compose path fix script
- Add ACCOUNTS.txt and other sensitive files to .gitignore - Add fix-paths.sh script for correcting Docker Compose volume paths - Prevent accidental commit of passwords and API tokens
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,3 +1,9 @@
|
|||||||
|
# Sensitive files
|
||||||
|
ACCOUNTS.txt
|
||||||
|
*.key
|
||||||
|
*.pem
|
||||||
|
*.p12
|
||||||
|
|
||||||
# Python
|
# Python
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
|||||||
12
deploy-production/fix-paths.sh
Normal file
12
deploy-production/fix-paths.sh
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Quick fix for remaining volume paths in docker-compose.prod.yml
|
||||||
|
|
||||||
|
cd /opt/stiftung
|
||||||
|
git pull
|
||||||
|
|
||||||
|
# Fix remaining volume paths in docker-compose.prod.yml
|
||||||
|
sed -i 's|./app/media|../app/media|g' deploy-production/docker-compose.prod.yml
|
||||||
|
sed -i 's|./backups|../app/backups|g' deploy-production/docker-compose.prod.yml
|
||||||
|
|
||||||
|
echo "✅ Volume paths fixed!"
|
||||||
|
echo "Now you can run: cd deploy-production && docker-compose -f docker-compose.prod.yml up -d"
|
||||||
Reference in New Issue
Block a user