diff --git a/install/flowiseai-install.sh b/install/flowiseai-install.sh index 04e97500..0ac6e298 100644 --- a/install/flowiseai-install.sh +++ b/install/flowiseai-install.sh @@ -30,6 +30,8 @@ msg_ok "Installed Node.js" msg_info "Installing FlowiseAI (Patience)" $STD npm install -g flowise +mkdir -p /opt/flowiseai +wget -q https://raw.githubusercontent.com/FlowiseAI/Flowise/main/packages/server/.env.example -O /opt/flowiseai/.env msg_ok "Installed FlowiseAI" msg_info "Creating Service" @@ -39,6 +41,7 @@ Description=FlowiseAI After=network.target [Service] +EnvironmentFile=/opt/flowiseai/.env ExecStart=npx flowise start Restart=always