# bbs **Repository Path**: oneweil/bbs ## Basic Information - **Project Name**: bbs - **Description**: 一个包含大部分社区功能的论坛 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-12 - **Last Updated**: 2023-10-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Build Status Total Downloads Latest Stable Version License

## 安装流程 - composer install --no-dev - 在storage/app/public/uploads/images/ 文件夹下手动创建categories、banners、avatars、covers、posters、topics文件夹 - chmod -R 777 storage - chmod -R 777 bootstrap/cache - cp .env.example .env - php artisan key:generate - php artisan jwt:secret - php artisan migrate --seed - php artisan storage:link - php artisan queue:work - php artisan self-diagnosis - php artisan config:cache - php artisan route:cache ## centos7安装supervisor - sudo su - yum install -y epel-release - yum install -y supervisor - systemctl enable supervisord # 开机自启动 - systemctl start supervisord # 启动supervisord服务 - systemctl status supervisord # 查看supervisord服务状态 - ps -ef|grep supervisord # 查看是否存在supervisord进程 - touch /etc/supervisord.d/horizon.ini - sudo supervisorctl reread - sudo supervisorctl update - sudo supervisorctl start horizon - sudo supervisorctl restart horizon - ps -ef|grep horizon ## horizon.ini ```php [program:horizon] process_name=%(program_name)s command=php /home/www/wwwroot/exeed_bbs/artisan horizon autostart=true autorestart=true user=root redirect_stderr=true stdout_logfile=/home/www/wwwroot/exeed_bbs/horizon.log stopwaitsecs=3600 ``` # 定时任务配置 - export EDITOR=vi && crontab -e - \* \* \* \* \* php /root/work/bbs/artisan schedule:run >> /dev/null 2>&1 # 接口文档 - 详见当前目录下 document.md 发布流程 ``` php artisan down git pull composer install --no-dev php artisan migrate php artisan db:seed vim .env php artisan route:cache php artisan config:cache php artisan opcache:clear php artisan up php artisan self-diagnosis supervisorctl restart all ```