mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 19:32:09 +00:00
27 lines
542 B
Bash
27 lines
542 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
if [ "${1:-}" = "nginx" ]; then
|
|
: "${PHP_FPM_UPSTREAM:=127.0.0.1:9000}"
|
|
export PHP_FPM_UPSTREAM
|
|
|
|
envsubst '${PHP_FPM_UPSTREAM}' \
|
|
< /etc/nginx/nginx.conf.template \
|
|
> /tmp/nginx.conf
|
|
|
|
exec nginx -c /tmp/nginx.conf -g 'daemon off;'
|
|
fi
|
|
|
|
mkdir -p \
|
|
bootstrap/cache \
|
|
storage/framework/cache \
|
|
storage/framework/sessions \
|
|
storage/framework/testing \
|
|
storage/framework/views \
|
|
storage/logs
|
|
|
|
php artisan config:cache --no-ansi
|
|
php artisan route:cache --no-ansi
|
|
|
|
exec "$@"
|