docker/pixelfed/pixelfed-startup

18 lines
439 B
Plaintext
Raw Normal View History

2020-01-15 06:15:43 +00:00
#!/usr/bin/env bash
set -xe
echo "ServerName ${APP_DOMAIN}" > /etc/apache2/conf-available/servername.conf
a2enconf servername
pixelfed 'rsync -rog storage-default/* storage/'
pixelfed 'php artisan config:cache'
2020-01-16 06:49:48 +00:00
pixelfed 'php artisan storage:link'
2020-01-15 20:07:47 +00:00
pixelfed 'php artisan horizon:install'
pixelfed 'php artisan horizon:assets'
pixelfed 'php artisan route:cache'
pixelfed 'php artisan view:cache'
2020-01-15 15:34:11 +00:00
pixelfed 'php artisan optimize'
2020-01-15 06:15:43 +00:00
exec "$@"