solara icon indicating copy to clipboard operation
solara copied to clipboard

Can't deploy on digitalocean

Open stepsbystep opened this issue 1 year ago • 4 comments

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?

stepsbystep avatar Sep 05 '24 15:09 stepsbystep

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

maartenbreddels avatar Sep 05 '24 19:09 maartenbreddels

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

stepsbystep avatar Sep 05 '24 21:09 stepsbystep

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.

maartenbreddels avatar Sep 06 '24 12:09 maartenbreddels

Yes, it works! Thank you!! I will be creating great apps with solara!!!

stepsbystep avatar Sep 06 '24 13:09 stepsbystep