-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-entry.sh
More file actions
29 lines (24 loc) · 805 Bytes
/
docker-entry.sh
File metadata and controls
29 lines (24 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
mkdir -p /var/www/public/uploads
chmod -R 777 /var/www/public/uploads
set -e
## Symfony configuration
if [ ${APP_ENV} != "prod" ]; then
php bin/console doctrine:database:drop --force --quiet --if-exists --no-interaction
fi
php bin/console doctrine:database:create --if-not-exists --quiet --no-interaction
php bin/console doctrine:migrations:migrate --verbose --no-interaction --allow-no-migration
if [ ${APP_ENV} != "prod" ]; then
php bin/console doctrine:fixtures:load --quiet --no-interaction --no-debug
fi
php bin/console cache:clear
php bin/console cache:warmup
chmod -R 777 /var/www/var
chmod -R 777 /var/www/public
# run composer scripts like
# assets:install public
# ckeditor:install and so on
composer run post-install-cmd
## server config
php-fpm -D &
nginx -g "daemon off;"