diff --git a/README-EN.md b/README-EN.md index eb2e2fea..55b590d3 100644 --- a/README-EN.md +++ b/README-EN.md @@ -26,10 +26,21 @@ Complete PT website building solution. Based on NexusPHP + Laravel Framework + E - .... ## System Requirements -- PHP: 8.0, must have extensions: bcmath, ctype, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix +- PHP: 8.0, must have extensions: bcmath, ctype, curl, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix - Mysql: 5.7 latest version or above - Redis:1.0.0 or above +## Quick Start +Install docker. +Where DOMAIN is the domain name you want to use, first do a good resolution. If you don't have a domain name, you can use IP. +If the local port 80 is already used, please change it and make sure the port is open to the public. +Step 2 Create .env Select the correct time zone TIMEZONE, other defaults are fine. +``` +docker pull xiaomlove/nexusphp:latest +docker run --name my-nexusphp -e DOMAIN=xxx.com -p 80:80 xiaomlove/nexusphp:latest +``` +**Production environments are recommended to refer to the documentation for live installation.** + ## More information Blog:[https://nexusphp.org](https://nexusphp.org/) Documentation:[https://doc.nexusphp.org](https://doc.nexusphp.org/en/) diff --git a/README.md b/README.md index b6120eb4..f2badbc0 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,20 @@ - .... ## 系统要求 -- PHP: 8.0,必须扩展:bcmath, ctype, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix +- PHP: 8.0,必须扩展:bcmath, ctype, curl, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix - Mysql: 5.7最新版或以上版本 - Redis:1.0.0或以上版本 +## 快速开始 +安装 docker。 +其中 DOMAIN 是你要使用的域名,先做好解析。 没有域名使用 IP 亦可。 +端口按需要指定,如果本地 80 端口已经使用,请更换,保证端口对外开放。 +第2步创建 .env 选择正确的时区 TIMEZONE,其他默认即可。 +``` +docker pull xiaomlove/nexusphp:latest +docker run --name my-nexusphp -e DOMAIN=xxx.com -p 80:80 xiaomlove/nexusphp:latest +``` +**生产环境建议参考文档实机安装。** ## 更多信息 博客:[https://nexusphp.org](http://nexusphp.org/) 文档:[https://doc.nexusphp.org](http://doc.nexusphp.org/) diff --git a/app/Console/Commands/BackupCronjob.php b/app/Console/Commands/BackupCronjob.php index 8fd39115..de6d0e82 100644 --- a/app/Console/Commands/BackupCronjob.php +++ b/app/Console/Commands/BackupCronjob.php @@ -40,7 +40,6 @@ class BackupCronjob extends Command { $force = $this->option('force'); $this->info("force: $force"); - do_log("ENV: " . getenv('NEXUS_LOG_DIR', true) . ", logFile: " . getLogFile()); $rep = new ToolRepository(); $result = $rep->cronjobBackup($force); $log = sprintf( diff --git a/include/cleanup.php b/include/cleanup.php index 15ee1696..3bb4799c 100644 --- a/include/cleanup.php +++ b/include/cleanup.php @@ -371,8 +371,7 @@ function docleanup($forceAll = 0, $printProgress = false) { $torrents[$row["torrent"]]["comments"] = $row["c"]; } -// $fields = explode(":", "comments:leechers:seeders"); - $fields = explode(":", "comments"); + $fields = explode(":", "comments:leechers:seeders"); $res = sql_query("SELECT id, seeders, leechers, comments FROM torrents") or sqlerr(__FILE__, __LINE__); while ($row = mysql_fetch_assoc($res)) { $id = $row["id"]; diff --git a/include/constants.php b/include/constants.php index 61b5edfa..e7164fc7 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ 'pcntl', 'desc' => "If use Octane and 'Current' showing 0, make sure it's on php -m"], ['name' => 'posix', 'desc' => "If use Octane and 'Current' showing 0, make sure it's on php -m"],