mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-12 21:43:48 +08:00
a0c605faae
This creates another mysql_testing database during db service setup Replace server with env tags in phpunit.xml in order to force override certain parameters when tests are run. See: https://github.com/sebastianbergmann/phpunit/issues/2353 for more information. Rename primary developer Docker database from bookstack-test to bookstack-dev. bookstack-test is used as the mysql_testing database
17 lines
279 B
Bash
Executable File
17 lines
279 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
|
|
php artisan migrate --database=mysql_testing
|
|
chown -R www-data:www-data storage
|
|
exec apache2-foreground
|
|
fi
|