redaction (#1)
Add the redacted source file for demo purposes Reviewed-on: https://source.michaeldileo.org/michael_dileo/Keybard-Vagabond-Demo/pulls/1 Co-authored-by: Michael DiLeo <michael_dileo@proton.me> Co-committed-by: Michael DiLeo <michael_dileo@proton.me>
This commit was merged in pull request #1.
This commit is contained in:
36
build/pixelfed/pixelfed-web/entrypoint-web.sh
Normal file
36
build/pixelfed/pixelfed-web/entrypoint-web.sh
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Source common functions
|
||||
. /usr/local/bin/entrypoint-common.sh
|
||||
|
||||
echo "Starting Pixelfed Web Container..."
|
||||
|
||||
# Create web-specific directories
|
||||
mkdir -p /var/log/nginx
|
||||
mkdir -p /var/log/supervisor
|
||||
mkdir -p /var/www/pixelfed/storage/nginx_temp/client_body
|
||||
mkdir -p /var/www/pixelfed/storage/nginx_temp/proxy
|
||||
mkdir -p /var/www/pixelfed/storage/nginx_temp/fastcgi
|
||||
mkdir -p /var/www/pixelfed/storage/nginx_temp/uwsgi
|
||||
mkdir -p /var/www/pixelfed/storage/nginx_temp/scgi
|
||||
|
||||
# Skip database initialization - handled by init-job
|
||||
# Just set up basic directory structure and cache
|
||||
echo "Setting up web container..."
|
||||
setup_directories
|
||||
|
||||
# Cache configuration (Laravel needs this to run)
|
||||
echo "Loading configuration cache..."
|
||||
cd /var/www/pixelfed
|
||||
php artisan config:cache || echo "Config cache failed, continuing..."
|
||||
|
||||
# Create storage symlink (needs to happen after every restart)
|
||||
echo "Creating storage symlink..."
|
||||
php artisan storage:link || echo "Storage link already exists or failed, continuing..."
|
||||
|
||||
echo "Web container initialization complete!"
|
||||
echo "Starting Nginx and PHP-FPM..."
|
||||
|
||||
# Execute the main command (supervisord)
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user