- 数据库:添加is_hot和hot_time字段 - Service层:实现toggleHot和getHotWorks方法 - 管理端API:添加设置热门和查询热门列表接口 - 用户端API:添加获取热门作品列表接口 - 实体类:更新Works和WorksResponse添加热门字段 - 文档:创建功能实现说明文档 后续需要: - 后台管理界面(Vue)添加热门设置按钮 - Android App添加热门Tab页
1.7 KiB
安装软件
安装 Node.js 18
curl -fsSL https://rpm.nodesource.com/setup_18.x | bash - yum install -y nodejs
验证
node -v npm -v
npm install -g pm2 pm2 start server.js --name upload-server pm2 save pm2 startup
更改配置 [root@VM-0-16-opencloudos ~]# # 重写正确的配置 cat > /www/server/panel/vhost/nginx/1.15.149.240_30005.conf << 'EOF' server { listen 30005; listen [::]:30005; server_name 1.15.149.240_30005; index index.php index.html index.htm default.php default.htm default.html; root /www/wwwroot/1.15.149.240_30005;
#CERT-APPLY-CHECK--START
include /www/server/panel/vhost/nginx/well-known/1.15.149.240_30005.conf;
#CERT-APPLY-CHECK--END
#ERROR-PAGE-START
error_page 404 /404.html;
#ERROR-PAGE-END
#PHP-INFO-START
include enable-php-84.conf;
#PHP-INFO-END
#REWRITE-START
include /www/server/panel/vhost/rewrite/1.15.149.240_30005.conf;
#REWRITE-END
# 上传API代理
location /api/ {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 500M;
}
location ~ ^/(\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md)
{
return 404;
}
nginx -s reload/www/wwwlogs/1.15.149.240_30005.error.log;a|ts|go|zip|tar.gz|rar|7z|sql|bak)$" ) { nginx: [warn] conflicting server name "1.15.149.240" on 0.0.0.0:20001, ignored nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok nginx: configuration file /www/server/nginx/conf/nginx.conf test is successful nginx: [warn] conflicting server name "1.15.149.240" on 0.0.0.0:20001, ignored