Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Q: Some of my servers can be switched off. How i can say rocketeer ignore them? #652

Open
KiberMath opened this issue Mar 22, 2016 · 3 comments

Comments

@KiberMath
Copy link

Not all the time all of my servers is currently running, so some of them switched off. How can i say rocketeer go deploy on next server if one of them is unavailable?
where i can handle exception

[Rocketeer\Exceptions\ConnectionException]
Unable to connect to remote server.
@maykino
Copy link

maykino commented Mar 22, 2016

That is a good question. I face the same issue.

@KiberMath
Copy link
Author

I invent wheele to hande this situation. I wrote function that ping array of connections. So my config looks like this:


    // The various connections you defined
    // You can leave all of this empty or remove it entirely if you don't want
    // to track files with credentials : Rocketeer will prompt you for your credentials
    // and store them locally
    'connections'      => \Helpers\PingHelper\PingHelper::pingRocketeerConnections(include __DIR__.'/../config/servers.php'),

and pingRocketeerConnections returns array of servers wich are online

@aik099
Copy link

aik099 commented Mar 28, 2016

That is cool in fact. Opens a way to have dynamically populated server list, like from AWS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants