mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
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
This commit is contained in:
16
docker-compose/startup.sh
Executable file
16
docker-compose/startup.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user