mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-13 12:15:03 +00:00
FlowiseAI: Migrate to pnpm (#14344)
This commit is contained in:
committed by
GitHub
parent
a13b28e714
commit
6217669d66
+8
-1
@@ -27,9 +27,16 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs
|
||||||
|
|
||||||
msg_info "Updating FlowiseAI (this may take some time)"
|
msg_info "Updating FlowiseAI (this may take some time)"
|
||||||
systemctl stop flowise
|
systemctl stop flowise
|
||||||
$STD npm install -g flowise --upgrade
|
$STD pnpm add -g flowise
|
||||||
|
if grep -q 'ExecStart=npx flowise start' /etc/systemd/system/flowise.service; then
|
||||||
|
sed -i 's|ExecStart=npx flowise start|ExecStart=flowise start|' /etc/systemd/system/flowise.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
fi
|
||||||
systemctl start flowise
|
systemctl start flowise
|
||||||
msg_ok "Updated FlowiseAI"
|
msg_ok "Updated FlowiseAI"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
NODE_VERSION="20" setup_nodejs
|
NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs
|
||||||
|
|
||||||
msg_info "Installing FlowiseAI (Patience)"
|
msg_info "Installing FlowiseAI (Patience)"
|
||||||
$STD npm install -g flowise \
|
$STD pnpm add -g flowise \
|
||||||
@opentelemetry/exporter-trace-otlp-grpc \
|
@opentelemetry/exporter-trace-otlp-grpc \
|
||||||
@opentelemetry/exporter-trace-otlp-proto \
|
@opentelemetry/exporter-trace-otlp-proto \
|
||||||
@opentelemetry/sdk-trace-node \
|
@opentelemetry/sdk-trace-node \
|
||||||
@@ -33,7 +33,7 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/opt/flowiseai/.env
|
EnvironmentFile=/opt/flowiseai/.env
|
||||||
ExecStart=npx flowise start
|
ExecStart=flowise start
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
Reference in New Issue
Block a user