solara
solara copied to clipboard
Can't deploy on digitalocean
I tried to deploy a simple solara script to a digitalocean droplet. Connection was refused.
I tried with nignx and the server def found here and without nignx, both with the same result. I had no trouble runing a streamlit script.
I was unable to find information elsewhere about running solara on digitalocean, or any other cloud platform except ploomber. Can I deploy solara apps on digitalocean?
Hi,
It shouldn't need nginx. The only thing I can think of is setting the port and the host. There is nothing special I think about digital ocean, I've used it before, and I don't remember having difficulties. Can you share a bit more details about what you did?
Regards,
Maarten
Thanks for the quick response Maarten!
Without ningx I tried both:
solara run slLayoutEx1.py
and
solara run slLayoutEx1.py --production
In both cases the only response is:
Solara server is starting at http://localhost:8765
From both Chrome and Edge browsers I enter:
http://xxx.xxx.xxx.x:8765/
and I get the response:
xxx.xxx.xxx.x:8765 refused to connect.
I have no firewall going on my droplet. It seems there is no solara error log to review.
Barry
Solara server is starting at http://localhost:8765
It is binding to localhost, so that means it only binds to the loopback device, if you pass --host 0.0.0.0 it will bind to all interfaces. I think this might not be covered in the docs, so we might need to write about that.
Let us know if that fixes it or not.
Yes, it works! Thank you!! I will be creating great apps with solara!!!