Skip to content

Commit

Permalink
"@builder6/server": "^0.2.3"
Browse files Browse the repository at this point in the history
  • Loading branch information
hotlong committed Dec 15, 2024
1 parent 5c3d106 commit 22168fb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions deploy/enterprise/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ WORKDIR /opt/steedos/nodered

RUN yarn && yarn cache clean

# plugins
COPY ./app/plugins /opt/steedos/plugins
WORKDIR /opt/steedos/plugins
# builder6
COPY ./app/builder6 /opt/steedos/builder6
WORKDIR /opt/steedos/builder6

RUN bash -c ". $NVM_DIR/nvm.sh && nvm use 20 && npm i --production"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "steedos-plugins",
"name": "builder6-server",
"version": "0.0.0",
"license": "MIT",
"dependencies": {
"@builder6/mongodb-api": "^0.1.3"
"@builder6/server": "^0.2.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ -z "$NODE_PATH" ]; then
fi

# 切换到工作目录
cd /opt/steedos/plugins || exit
cd /opt/steedos/builder6 || exit

# 使用 Node.js 14 运行应用
exec "$NODE_PATH" ./node_modules/@builder6/mongodb-api/dist/main.js
exec "$NODE_PATH" ./node_modules/@builder6/server/dist/b6.server.js -u "$STEEDOS_STORAGE_DIR/builder6"
3 changes: 3 additions & 0 deletions deploy/enterprise/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ services:
- NPM_CACHE_PACKAGE_CONTENT=true
- NPM_REGISTRY_URL=https://registry.npmmirror.com
- STEEDOS_WIDGETS_ADDITIONAL=@steedos-widgets/liveblocks
- B6_PLUGIN_PACKAGES=@builder6/node-red,lodash
- B6_PLUGIN_SERVICES=@builder6/node-red
- B6_PLUGIN_NPMRC=registry=https://registry.npmmirror.com
tty: true
volumes:
- "./steedos-storage:/steedos-storage"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[program:api]
directory=/app/
command=/opt/steedos/run-with-env.sh /opt/steedos/plugins/startup.sh
command=/opt/steedos/run-with-env.sh /opt/steedos/builder6/startup.sh
priority=15
autostart=true
autorestart=true
Expand Down

0 comments on commit 22168fb

Please sign in to comment.