chore(docker): 更新.gitignore

This commit is contained in:
2025-12-02 15:08:54 +08:00
parent 5f48980d31
commit b8ed400d12
6 changed files with 32 additions and 27 deletions

View File

@@ -27,6 +27,7 @@ RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
iputils-ping \
&& rm -rf /var/lib/apt/lists/*
# 安装 PHP 扩展

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# 检查并创建必要的目录
for dir in "/var/www/html/runtime" "/var/www/html/uploads" "/var/www/html/tmp" "/var/www/html/temp"; do
for dir in "/var/www/html/runtime" "/var/www/html/uploads"; do
if [ ! -d "$dir" ]; then
mkdir -p "$dir"
echo "创建目录: $dir"

View File

@@ -8,7 +8,6 @@ pidfile=/var/run/supervisord.pid
[program:php-fpm]
command=php-fpm
directory=/var/www/html
autostart=true
autorestart=true
startretries=3
@@ -22,19 +21,18 @@ stderr_logfile=/var/log/supervisor/php-fpm-error.log
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
# [program:think-cron]
# command=php /var/www/html/think cron:schedule
# process_name=%(program_name)s_%(process_num)02d
# numprocs=1
# directory=/var/www/html
# autostart=true
# autorestart=true
# startretries=3
# stdout_logfile=/var/log/supervisor/think-cron.log
# stdout_logfile_maxbytes=10MB
# stdout_logfile_backups=10
# stderr_logfile=/var/log/supervisor/think-cron-error.log
# stderr_logfile_maxbytes=10MB
# stderr_logfile_backups=10
# startsecs=3
# stopwaitsecs=10
[program:think-cron]
command=php /var/www/html/think cron:schedule
process_name=%(program_name)s_%(process_num)02d
numprocs=1
autostart=true
autorestart=true
startretries=3
stdout_logfile=/var/log/supervisor/think-cron.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=/var/log/supervisor/think-cron-error.log
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
startsecs=3
stopwaitsecs=10