Jovan
SSolara
•Created by Agnôle on 2/12/2025 in #questions-issues
How to use SOLARA_ASSETS_EXTRA_LOCATIONS
I am kind struggling with the same thing, and these are the instructions:
https://github.com/widgetti/solara/pull/847/files
I hope it will help you
4 replies
SSolara
•Created by Jovan on 1/26/2025 in #questions-issues
Solara server disconnect - settings
ok i understand! Yes it happens on the solara.dev live website, so i thought it is a feature to save resources (smart!).
But maybe the server disconnects/restarts after some time of inactivity. It never happens if the app is in use (which is nice of course).
Ok so cool, this can probably be configured on the server side! Thanks!
5 replies
SSolara
•Created by Jovan on 1/20/2025 in #questions-issues
Logging in docker
Ok i figured it out, for anyone that might be struggling with this in the future:
If you have a dockerfile trying to set up a solara webapp (for production use), if you do something like
the logs will not pooled by docker, since
mamba run
lives in a separate process and spans a new process that runs solara.. Something similar happens with uv run
if that is more your thing.
If you use CMD [...]
even if solara does not run in pid1 the logs will be properly found.
However, for production use, ENTRYPOINT is preferred.. so at the end .. the best solution I could find after some research is the following..
install tini
and supervisord
from apt-get if your base image does not already have it and do something like
you will need to have a supervisord.config
file and possibly some startup.sh
script.
If you are not familiar with these, read about them, quite useful in this set up (your neighbourhood LLMs also know about them).
example
To the moderators: you can consider thi issue closed.
Thanks!4 replies
SSolara
•Created by Jovan on 1/20/2025 in #questions-issues
Logging in docker
actually.. probably solara does something with the logging (that matters when stuff are in docker), since a simple mamba run.. with a test file works well and logging is capture by docker
ENTRYPOINT ["mamba", "run", "-n", "my-env", "python", "test_log.py"]
works but
ENTRYPOINT ["mamba", "run", "-n", "my-env", "solara", "run", "app.py", "--host=0.0.0.0", "--production", "--port", "8765", "--log-level", "info"]
does not4 replies
SSolara
•Created by Jovan on 1/20/2025 in #questions-issues
Logging in docker
I think i understand what is happening.. since i am using "mamba run .." my solara process is not a pid1 process..
so one needs to find a way around this probably.
4 replies
SSolara
•Created by Jovan on 12/29/2024 in #questions-issues
Vue plugins & packages with solara
Thank you, this is great! Nice work!
4 replies
SSolara
•Created by Jovan on 12/11/2024 in #questions-issues
Updating & re-rendering custom `component_vue`
Yeah indeed, you are correct, the example i shared above is working. I have spent a lot of time on this and I can't reproduce the effect I am seeing in my larger app in a demo example..
I was just wondering if there are any constrains or conditions under which this might happen?
Next change I get I will do more refactor in hope of isolating the issue. If i find it and reproduce it i will report back.
Thanks!
3 replies