-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"pagic": { | ||
"use": "@cloudbase/framework-plugin-website", | ||
"inputs": { | ||
"buildCommand": "cd pagic.cn && deno run --allow-read --allow-write build.ts && deno run --allow-read --allow-write --allow-net --allow-env --allow-run https://deno.land/x/[email protected]/mod.ts build", | ||
"buildCommand": "cd pagic.cn && deno run --unstable --allow-read --allow-write build.ts && deno run --unstable --allow-read --allow-write --allow-net --allow-env --allow-run https://deno.land/x/[email protected]/mod.ts build", | ||
"outputPath": "pagic.cn/dist" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
- name: Build gh-pages | ||
run: | | ||
deno --version | ||
deno install --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/[email protected]/mod.ts | ||
deno install --unstable --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/[email protected]/mod.ts | ||
pagic build | ||
- name: Deploy gh-pages | ||
|
@@ -67,10 +67,10 @@ Create a `deploy-vercel.sh` file in the project root directory: | |
curl -fsSL https://deno.land/x/install/install.sh | sh | ||
# Install pagic | ||
/vercel/.deno/bin/deno install --allow-read --allow-write --allow-net https://deno.land/x/pagic/mod.ts | ||
/vercel/.deno/bin/deno install --unstable --allow-read --allow-write --allow-net https://deno.land/x/pagic/mod.ts | ||
# Pagic build | ||
/vercel/.deno/bin/deno run --allow-read --allow-write --allow-net --allow-env --allow-run https://deno.land/x/pagic/mod.ts build | ||
/vercel/.deno/bin/deno run --unstable --allow-read --allow-write --allow-net --allow-env --allow-run https://deno.land/x/pagic/mod.ts build | ||
``` | ||
|
||
Configure script command in `package.json`: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,19 +20,19 @@ Other installation methods (PowerShell, Homebrew, etc.) can be found in [Deno of | |
Execute the following command to install the latest version of Pagic: | ||
|
||
```bash | ||
deno install --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/pagic/mod.ts | ||
deno install --unstable --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/pagic/mod.ts | ||
``` | ||
|
||
If you need to install a specific version of Pagic, you can add the version in the URL: | ||
|
||
```bash | ||
deno install --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/[email protected]/mod.ts | ||
deno install --unstable --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/[email protected]/mod.ts | ||
``` | ||
|
||
> Pagic will only require the necessary permissions. If you want to further restrict Pagic's runtime permissions, you can limit it by specifying the read and write directories: | ||
> | ||
> ```bash | ||
> deno install --allow-read=/home/xcatliu/site --allow-write=/home/xcatliu/site --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/pagic/mod.ts | ||
> deno install --unstable --allow-read=/home/xcatliu/site --allow-write=/home/xcatliu/site --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/pagic/mod.ts | ||
> ``` | ||
### Install via Docker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
- name: Build gh-pages | ||
run: | | ||
deno --version | ||
deno install --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/[email protected]/mod.ts | ||
deno install --unstable --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/[email protected]/mod.ts | ||
pagic build | ||
- name: Deploy gh-pages | ||
|
@@ -94,10 +94,10 @@ jobs: | |
curl -fsSL https://deno.land/x/install/install.sh | sh | ||
# Install pagic | ||
/vercel/.deno/bin/deno install --allow-read --allow-write --allow-net https://deno.land/x/pagic/mod.ts | ||
/vercel/.deno/bin/deno install --unstable --allow-read --allow-write --allow-net https://deno.land/x/pagic/mod.ts | ||
# Pagic build | ||
/vercel/.deno/bin/deno run --allow-read --allow-write --allow-net --allow-env --allow-run https://deno.land/x/pagic/mod.ts build | ||
/vercel/.deno/bin/deno run --unstable --allow-read --allow-write --allow-net --allow-env --allow-run https://deno.land/x/pagic/mod.ts build | ||
``` | ||
|
||
在 `package.json` 配置脚本命令: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,19 +22,19 @@ curl -fsSL https://deno.land/x/install/install.sh | sh | |
执行以下命令来安装最新版本的 Pagic: | ||
|
||
```bash | ||
deno install --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/pagic/mod.ts | ||
deno install --unstable --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/pagic/mod.ts | ||
``` | ||
|
||
若需要安装指定版本的 Pagic,则可以在安装的 URL 中加入版本号: | ||
|
||
```bash | ||
deno install --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/[email protected]/mod.ts | ||
deno install --unstable --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/[email protected]/mod.ts | ||
``` | ||
|
||
> Pagic 只会要求必须用到的权限,如果你希望更进一步限制 Pagic 运行时的权限,可以通过指定读写目录的方式加以限制: | ||
> | ||
> ```bash | ||
> deno install --allow-read=/home/xcatliu/site --allow-write=/home/xcatliu/site --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/pagic/mod.ts | ||
> deno install --unstable --allow-read=/home/xcatliu/site --allow-write=/home/xcatliu/site --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/pagic/mod.ts | ||
> ``` | ||
### 通过 Docker 安装 | ||
|