Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't deploy on digitalocean #777

Open
stepsbystep opened this issue Sep 5, 2024 · 4 comments
Open

Can't deploy on digitalocean #777

stepsbystep opened this issue Sep 5, 2024 · 4 comments

Comments

@stepsbystep
Copy link

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?

@maartenbreddels
Copy link
Contributor

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

@stepsbystep
Copy link
Author

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

@maartenbreddels
Copy link
Contributor

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.

@stepsbystep
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants