capistrano-plugins / capistrano-unicorn-nginx

Capistrano tasks for automatic and sensible unicorn + nginx configuration
MIT License
175 stars 81 forks source link

This plugin only works for :web role #86

Open nextofsearch opened 8 years ago

nextofsearch commented 8 years ago

Hi,

Is there a specific reason why it should only work on :web role? I have RESTful API servers which I want to use this plugin for and I just learned that nginx:setup task only works on :web role.

Thanks,

rhomeister commented 8 years ago

You can assign your servers multiple roles. By making it possible to separate the web and app role, this gem gives you the flexibility to setup your cluster in the way you want.

On 20 July 2016 at 10:38, Dano Lee notifications@github.com wrote:

Hi,

Is there specific reason why it should only work on :web role? I have an API server which I want to use this plug in for and I just learned that nginx:setup only works on :web role.

Thanks,

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/capistrano-plugins/capistrano-unicorn-nginx/issues/86, or mute the thread https://github.com/notifications/unsubscribe-auth/ABobTJJ8aDGNstTyF08psic-8HZPkbm5ks5qXd58gaJpZM4JQjLp .

nextofsearch commented 8 years ago

Hi @rhomeister, I do understand that. We are running a system composed of API servers, web servers for dashboard, workers, etc. I use :web role for our web servers for dashboard only and :app role for API servers to manage efficiently. For example, API servers do not need to precompile assets. In order to use this plugin I have to break this policy. Is there a better way to do this? I will appreciate your advice.

Thanks,

rhomeister commented 8 years ago

Hi @nextofsearch,

That's a tricky situation. I'm sure it can be solved somehow, but I can't give you any concrete pointers without digging deeper. By the way, if asset precompilation is the problem, maybe you can turn this off for the app role in the gem that you use for assets?

Cheers

nextofsearch commented 8 years ago

Hi, @rhomeister,

I guess turning if off is the only solution for now. It would be nice if this plugin supports a custom role.

Thanks,