docker/pixelfed/pixelfed-startup

15 lines
342 B
Bash
Executable file

#!/usr/bin/env bash
set -xe
pixelfed 'rsync -rog storage-default/* storage/'
pixelfed 'php artisan config:cache'
pixelfed 'php artisan horizon:install'
pixelfed 'php artisan horizon:assets'
pixelfed 'php artisan route:cache'
pixelfed 'php artisan view:cache'
pixelfed 'php artisan media:optimize'
pixelfed 'php artisan optimize'
exec "$@"