Skip to content

Commit 02b592f

Browse files
committed
chore: add provider startup script
1 parent d080f64 commit 02b592f

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
NUXT_PUBLIC_DEFAULT_TYPE=node
2+
NUXT_PUBLIC_PROVIDER_MODE=true
3+
NUXT_PUBLIC_PROVIDER_URL=http://localhost:8086

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@
44

55
Your self-hosted notion alternative
66

7+
## Startup Via Node provider as debug
8+
9+
```bash
10+
# cp .env .env
11+
# change NUXT_PUBLIC_PROVIDER_URL or use default
12+
pnpm devApp
13+
```
14+
15+
## Startup Via Node provider
16+
17+
```bash
18+
# cp ./startup.example.sh ./startup.sh
19+
# change NUXT_PUBLIC_PROVIDER_URL or use default
20+
./startup.sh
21+
```
22+
723
## More
824

925
[Click here](https://siyuan.wiki/s/20250111132959-xvao9ll)

README_zh_CN.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@
44

55
您的自部署 notion 替代品
66

7+
## 服务商开发模式启动
8+
9+
```bash
10+
# cp .env .env
11+
# 修改 NUXT_PUBLIC_PROVIDER_URL,或者使用默认
12+
pnpm devApp
13+
```
14+
15+
## 服务商生产模式启动
16+
17+
```bash
18+
# cp ./startup.example.sh ./startup.sh
19+
# 修改 NUXT_PUBLIC_PROVIDER_URL,或者使用默认
20+
./startup.sh
21+
```
22+
723
## 详细了解
824

925
[功能介绍](https://siyuan.wiki/s/20250111132959-fv1bjrw)

build-node-provider.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
pnpm build -F @terwer/share-pro-app --force -- --from node
4+
echo "Build node provider finished."

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"lint": "turbo run lint",
1111
"clean": "./scripts/clean.sh",
1212
"start": "./startup.sh",
13+
"buildNodeProvider": "./build-node-provider.sh",
1314
"packageNodeProvider": "./package-node-provider.sh",
1415
"package": "python scripts/package.py",
1516
"syncVersion": "python scripts/version.py",

0 commit comments

Comments
 (0)