http://localhost:3000/share?id=20230620004441-fwvuy8a&origin=http://127.0.0.1:6806&isSsr=false
http://localhost:3000/s/20230411223531-n81ogbh
http://localhost:3000/#/s/20230411223531-n81ogbh
http://localhost:3000/api/hello
http://localhost:3000/api/endpoint/getPost?id=20230411223531-n81ogbh
pnpm serve
pnpm dev
然后使用插件菜单体验即可
pnpm build
打包后 build 目录会生成 package.zip 和 siyuan-plugin-blog-xxx.zip
pnpm vercelBuild
pnpm nodeBuild
接着启动 node 服务器
NUXT_PUBLIC_DEFAULT_TYPE=siyuan node NUXT_PUBLIC_SIYUAN_API_URL=http://127.0.0.1:6806 node .output/server/index.mjs
然后打开
http://localhost:3000
pnpm nodeBuild
docker compose up --build --remove-orphans
docker push terwer/nuxt3-blog:latest
最简单的使用
docker compose -f docker-compose-hub.yml up --build --remove-orphans
Error response from daemon: network 84c2ef99951fa08c37c3bf3f6b484bf149bfb283142a306ba285af4053961eaa not found
--force-recreate
搭配思源:https://github.com/terwer/my-note-docker/blob/main/docker-compose.yml
直接使用已打包的,参考 docker-compose-hub.yml
,可能需要配置 .env.docker
,可以复制 .env.docker.example
,然后修改即可