mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-12 21:43:48 +08:00
227c5e155b
Migrations run without force could fail startup in certain environment conditions (when testing production env). Also updated paths permission handling to update more needed locations.
16 lines
260 B
Bash
Executable File
16 lines
260 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
env
|
|
|
|
if [[ -n "$1" ]]; then
|
|
exec "$@"
|
|
else
|
|
composer install
|
|
wait-for-it db:3306 -t 45
|
|
php artisan migrate --database=mysql --force
|
|
chown -R www-data storage public/uploads bootstrap/cache
|
|
exec apache2-foreground
|
|
fi
|