mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-02 18:48:36 +00:00
21 lines
414 B
Bash
21 lines
414 B
Bash
#!/usr/bin/env bash
|
|
|
|
# turn on bash's job control
|
|
set -m
|
|
|
|
# export env from .env
|
|
export "$(grep DB_HOST .env)" \
|
|
&& export "$(grep DB_PORT .env)" \
|
|
&& /etc/wait-for-it.sh $DB_HOST:$DB_PORT -t 45
|
|
|
|
chmod -R 777 storage
|
|
sudo -u "www-data" mkdir -p storage/framework/{cache,sessions,testing,views}
|
|
|
|
service queue-worker start
|
|
service caddy start
|
|
service cron start
|
|
|
|
/usr/local/bin/php artisan --force migrate
|
|
|
|
php-fpm
|