-
Notifications
You must be signed in to change notification settings - Fork 31
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
How to use on Digital Ocean #32
Comments
Does your setup work if you do not use thruster by running You might want to double check the network/port configuration. Is traffic reaching Rails app/Thruster through the right port? |
@3v0k4 thanks for your reply |
It should pretty much work out of the box, you are right. Thruster binds to The fact that you don't see anything at all in the logs suggests that traffic doesn't even reach Thruster. That's where I'd start from. Does |
I'm not the original poster but I have what seems like the same problem. I can run Puma without Thruster ( However when I try with thruster everything appears to start correctly but I can't connect with a browser to https://fooapp.com. Start up
curl output
Nothing is logged by Thruster / Puma when I visit the site in a browser or via curl. This is using Thruster 0.1.4. |
According to |
I was trying to think why Thruster wouldn't bind to 443 (or 80) when nothing else is, and I wondered if it had to do with needing stronger permissions to bind to a privileged port. I tried this, which didn't work:
And then this, which did:
Evidently sudo discards its environment when it executes, which makes sense. So this is solved for me. |
I wouldn't recommend running your web server as root for security, you might want to give CAP_NET_BIND privileges to a separate user that runs thruster to allow it to bind to 443 & keep the rest of the benefits of non-root access. |
@reesericci Thanks. The |
Hey I need some help with the thruster gem if anyones familiar with this I was expecting it to work out of the box on a digital ocean vm I am using
thrust bin/rails s
but I can't view the app when I go to the servers IP address and i tried setting TLS and accessing from the domain but still nothing shows up and no logs in the rails appThe text was updated successfully, but these errors were encountered: