pushdeer/docker/web/init.sh

17 lines
363 B
Bash
Raw Normal View History

2021-12-23 00:19:55 +08:00
#!/bin/bash
# 初始化 laravel
2022-01-04 19:42:40 +08:00
cd /app/api && composer install && cp -n .env.example .env && php artisan key:generate && php artisan migrate --seed
2021-12-23 00:19:55 +08:00
2022-01-16 19:05:29 +08:00
mkdir -p /app/api/storage
2021-12-23 00:19:55 +08:00
chmod -R 0777 /app/api/storage
2022-01-16 19:05:29 +08:00
mkdir -p /app/api/bootstrap/cache/
2021-12-23 00:19:55 +08:00
chmod -R 0777 /app/api/bootstrap/cache/
# 启动 proxy
# 已经设置为 deamon
2022-01-04 19:42:40 +08:00
# cd /app/proxy && ./server-linux &