Spaces:
Running
add steps make it compatible with persistent storage
in case users enable persist storage on HF Spaces, /data
is not mounted at buildtime, only at runtime.
this enables preparing the /logpath at runtime
can i use it to connect the app with third party database?
hi
@connerdenverk
, from their docs here, https://docs.flowiseai.com/databases you just need to setup your DB and set the Environment variables in the Dockerfile
https://huggingface.co/spaces/FlowiseAI/Flowise/blob/main/Dockerfile#L4-L10
@radames
Boss, actually I recently deployed Flowise on Hugging Face space but, you guys don't provide persistent storage in the free tier. so, I wanted to add a postgreSQL database to persist the flowise data so that, if the space restarts my data don't vanish. I followed the Flowise Docs but, it's not working. what should I do, any suggestion?
hi @connerdenverk , have you tried this?https://docs.flowiseai.com/databases#synchronize-in-production
Synchronize in Production
Flowise uses Typeorm to configure database connection. By default, synchronize is set to true. This indicates if database schema should be auto created on every application launch.
However, we have to be careful with this option and don't use this in production - otherwise you can lose production data. This option is useful during debug and development.
To override the value, set the following env variable
OVERRIDE_DATABASE=false
Hey @HenryHeng @radames 👋
Can you please let me the procedure, so that my instance can work in production after restarts?
As for now I follow the flowise docs, but it's not working, at each new restarts, everything gone!