basecamp / thruster

MIT License
672 stars 16 forks source link

Best practice for deploying Rails projects with Thruster #12

Open hooopo opened 3 months ago

hooopo commented 3 months ago

I read the README and found the descriptions to be very simple, leaving me with some questions. What are the best practices for deploying Rails projects with Thruster, just SSL_DOMAIN=example.com thrust rails server? How do we handle scaling and auto-restart issues, are there any examples to refer to?

3v0k4 commented 3 months ago

I know you are awaiting an answer from the maintainers, but I was passing by 🙂

Thruster works best when paired with containers like Docker. Since it wraps Puma, you can use it as the CMD.

If you dockerize your app, you can use any orcherstration tool to take care of scaling and similar concerns.

There's a milestone in the Rails repo set for v8 that covers part of your questions: https://github.com/rails/rails/issues/50479

hooopo commented 3 months ago

@3v0k4 thanks

jmonteiro commented 2 months ago

In the meantime, with Rails 7.1, you can use dockerfile-rails: on your Rails project just bundle add dockerfile-rails and then bin/rails g dockerfile --thruster.

hooopo commented 2 months ago

@jmonteiro cool 🎉