Removed: - Caddyfile: Caddy reverse proxy config (replaced by nginx.conf) - setup_https.sh: Caddy HTTPS setup script - https_manager.py: Caddy HTTPS management utility - HTTPS_STATUS.txt: Old HTTPS documentation - docker-compose.http.yml: HTTP-only Caddy compose file - player_auth_module.py: Old authentication module (unused) - player_config_template.ini: Old player config template (unused) - test connection.txr: Test file Updated: - init-data.sh: Removed references to deleted caddy/obsolete files - .dockerignore: Removed obsolete ignore entries This completes the Caddy → Nginx migration cleanup.
30 lines
759 B
Bash
Executable File
30 lines
759 B
Bash
Executable File
#!/bin/bash
|
|
# Initialize ./data folder with all necessary files for deployment
|
|
|
|
set -e
|
|
|
|
echo "🔧 Initializing data folder..."
|
|
mkdir -p data/{app,instance,uploads}
|
|
|
|
echo "📁 Copying app folder..."
|
|
rm -rf data/app
|
|
mkdir -p data/app
|
|
cp -r app/* data/app/
|
|
|
|
echo "📋 Copying migrations..."
|
|
rm -rf data/migrations
|
|
cp -r migrations data/
|
|
|
|
echo "🔧 Copying utility scripts..."
|
|
cp fix_player_user_schema.py data/
|
|
|
|
echo "🔐 Setting permissions..."
|
|
chmod 755 data/{app,instance,uploads}
|
|
chmod -R 755 data/app/
|
|
find data/app -type f \( -name "*.py" -o -name "*.html" -o -name "*.css" -o -name "*.js" \) -exec chmod 644 {} \;
|
|
chmod 777 data/instance data/uploads
|
|
|
|
echo "✅ Data folder initialized successfully!"
|
|
echo "📊 Data folder contents:"
|
|
du -sh data/*/
|