Files
crater/docker-compose/startup.sh
LU-386 e03320d27b simplified deployment with docker (#639)
* updated Dockerfile and docker-compose.yml, replaced cron with ofelia and setup.sh with automatically executed startup.sh

* fixed permissions by setting them in setup-script
2022-03-16 18:29:21 +05:30

17 lines
295 B
Bash
Executable File

#!/bin/sh
chmod 775 /var/www/ -R
chown 1000:33 /var/www -R
if [ ! -f ".env" ]; then
cp .env.example .env
echo "created .env from .env.example"
fi
composer install --no-interaction --prefer-dist --optimize-autoloader
php artisan storage:link || true
php artisan key:generate
php-fpm