4
4
4itosik2015-03-20 19:41:08
Nginx
4itosik, 2015-03-20 19:41:08

Does Rails nginx puma support multiple apps per 1 vps?

Essence of the question:
Does Rails nginx puma support multiple applications per 1 vps?
Here's the thing, I set up a vps using this tutorial https://coderwall.com/p/ttrhow/deploying-rails-app... and everything worked until I decided to add another rails application to the same VPS.
Now nginx gives an error in the logs

[emerg] 20737#0: duplicate upstream "puma" in /etc/nginx/sites-enabled/vsejalreg:1

If I turn off one config in nginx everything works, if I turn off the first one and turn on the second one, it also works.
But together they don't want to :(
And if puma doesn't support multiple applications on 1 vps, does it support unicon?
And is gem "faye-websocket" compatible with unicon?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2015-03-20
@opium

In the second config at the beginning, remove the lines about upstream

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question