Versions:
- Ruby 2.2.2
- Capistrano 3.4.0
- Rake 10.4.2
Platform:
- Working on linux
- Deploying to linux (on Azure - important, see later)
Files: deploy/production.rb
server 'example-service.cloudapp.net', user: 'deploy', roles: %w{web
app db}, primary: true
server 'example-service.cloudapp.net:12345', user: 'deploy', roles:
%w{web app db}
I have a production.rb file with the above configuration. However,
capistrano will only deploy to the 2nd server (on port 12345). It seems
unable to detect that I have 2 separate servers which are distinguished by
port alone.
Why would I want to do that anyway? I'm deploying to a service hosted on
Azure. It's two linux servers load-balanced under a service called
"example-service.cloudapp.net". I've opened firewall pinholes for ssh ports
for both servers (22 and 12345) so I need to be able to distinguish between
2 separate servers solely by the fact they run under different ports.
I'm guessing I'm doing it wrong and there might be a better way to define
the servers. Would anyone be able to suggest an alternative? Thanks in
advance.
And yes, I can ssh into each box using the hostnames and ports above. This
is more about capistrano being able to see there are two separate servers.
--
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/capistrano/dc5ea8ae-71f9-40f9-8aa5-032ff20b34a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.