mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-04-30 18:59:31 +08:00
new post
This commit is contained in:
parent
68da2b2c4d
commit
d5e0938a4f
1 changed files with 12 additions and 3 deletions
|
@ -27,17 +27,26 @@ tags:
|
|||
- 本地生成文件: `yarn build` or `pnpm build`
|
||||
- 需要的文件:`.output`文件夹
|
||||
|
||||
我这里将`.output` 文件夹重命名为了 `output`,下面的操作中也进行了相应的修改
|
||||
|
||||
## Step2-上传云端
|
||||
|
||||
可以用 scp 或者 sftp 的方式上传,如果用 scp 的话:
|
||||
可以用 scp 或者 sftp 的方式上传,如果用 scp 的话,先用命令行进入`output` 文件夹,然后再用 scp 上传
|
||||
如:
|
||||
|
||||
```bash
|
||||
cd output && scp -P 22 -i ~/.ssh/id_rsa -r * root@127.0.0.1:/opt/work/example
|
||||
```
|
||||
|
||||
其中 scp 的配置为:
|
||||

|
||||
|
||||
**文件夹结构**:
|
||||
**服务器文件夹结构**:
|
||||
以放在`/opt/test/`下面为例
|
||||
|
||||
- opt
|
||||
- test
|
||||
- **output** (我这里重命名去掉了前面的点,也可以不去)
|
||||
- **output**
|
||||
- **public**
|
||||
- **server**(这里面有 node_module 了,不需要额外 npm install,重新装会破坏原有的内容)
|
||||
- **nitro.json**
|
||||
|
|
Loading…
Reference in a new issue