1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 00:35:59 +00:00
pixelfed/contrib/docker/start.sh

21 lines
534 B
Bash
Raw Normal View History

#!/bin/bash
# Create the storage tree if needed and fix permissions
cp -r storage.skel/* storage/
chown -R www-data:www-data storage/ bootstrap/cache/
php artisan storage:link
# Migrate database if the app was upgraded
gosu www-data:www-data php artisan migrate --force
2018-10-18 06:26:32 +00:00
# Run other specific migratins if required
gosu www-data:www-data php artisan update
2018-10-18 06:26:32 +00:00
# Run a worker if it is set as embedded
if [ "$HORIZON_EMBED" = "true" ]; then
gosu www-data:www-data php artisan horizon &
fi
# Finally run Apache
exec apache2-foreground