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

How to deploy and manage web processes (puma, nginx) on one set of servers, and worker processes(resque / sidekiq) on other set of servers? #2

Closed
8parth opened this issue Oct 6, 2018 · 1 comment

Comments

@8parth
Copy link

8parth commented Oct 6, 2018

We are using mina for production. I want to deploy and manage nginx and puma on one set of servers, and sidekiq on other set of servers. How can I achieve this with mina-multi_server? Is there anything similar to roles?

@Juanmcuello
Copy link
Owner

There is no such a thing as roles, but maybe having different tasks could solve what you need.
Something like this:

task :web do
  set :servers, ['www1.example.com', 'www2.example.com']
end

task :workers do
  set :servers, ['worker1.example.com', 'worker2.example.com']
end

Then you can call the two tasks (assuming there are tasks named deploy):

$ mina web deploy
$ mina workers deploy

If you want, you can create a bash script in order to run just one command. See #1 to see how.

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