Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hefengbao committed Nov 25, 2024
1 parent 3bd3975 commit 50a0b85
Show file tree
Hide file tree
Showing 16 changed files with 86 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default defineConfig({
],
},
{
text: '宝塔 Linux',
text: '宝塔 Linux 面板',
items: [
{ text: '宝塔安装', link: '/guide/bt' },
{ text: '搭建环境', link: '/guide/bt-env' },
Expand Down
65 changes: 65 additions & 0 deletions docs/guide/bt-deploy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 部署

## 下载代码

[https://gitee.com/hefengbao/yuzhu/releases](https://gitee.com/hefengbao/yuzhu/releases) 或者 [https://github.com/hefengbao/yuzhu/releases](https://github.com/hefengbao/yuzhu/releases) 下载代码(压缩包)。

## 上传代码

![](../images/bt12.png)


解压代码:

![](../images/bt13.png)

![](../images/bt14.png)

## 添加数据库

![](../images/bt15.png)

## 添加站点

![](../images/bt18.png)

域名那里有域名填写域名,没有的话填写公网 IP。

根目录选择到 `public` 目录:

![](../images/bt19.png)

数据库选择 MySql, 用户名、账号填写上一步创建的。


一些设置:


![](../images/bt21.png)


复制粘贴如下内容,注意 `php8.3-fpm.sock` 这里根据实际的 PHP 版本修改,如果是 8.2 版本,则是 `php8.2-fpm.sock`, 以此类推。

```
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_hide_header X-Powered-By;
}
```

安装依赖:

![](../images/bt23.png)

复制 `--optimize-autoloader --no-dev --ignore-platform-reqs` 粘贴到【补充命令】那里。


![](../images/bt22.png)


23 changes: 19 additions & 4 deletions docs/guide/bt-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,23 @@
玉竹(Yuzhu)使用 PHP 语言开发。


`PHP` 版本选择 8.2 及以上版本:
## `PHP` 版本选择 8.2 及以上版本:

![](../images/bt10.png)


设置:

服务器软件选择 `Nginx`:
![](../images/bt16.png)

安装扩展:

![](../images/bt17.png)

需要安装的扩展参考 [https://laravel.com/docs/11.x/deployment#server-requirements](https://laravel.com/docs/11.x/deployment#server-requirements)


## 服务器软件选择 `Nginx`:


![](../images/bt4.png)
Expand All @@ -19,15 +29,20 @@



数据库选择 `MySql`:
## 数据库选择 `MySql`:

![](../images/bt6.png)

![](../images/bt7.png)


顺便安装 phpMyAdmin,选择最高的版本即可:


![](../images/bt20.png)


缓存使用 `Redis` 数据库:
## 缓存使用 `Redis` 数据库:


![](../images/bt8.png)
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ git checkout release
## 安装扩展包:

```bash
composer install --optimize-autoloader --no-dev
composer install --optimize-autoloader --no-dev --ignore-platform-reqs
```

## 配置:
Expand Down
Binary file added docs/images/bt12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bt13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bt14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bt15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bt16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bt17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bt18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bt19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bt20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bt21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bt22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bt23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 50a0b85

Please sign in to comment.