shipit
shipit copied to clipboard
How to fetch the server shipit is running
Hey there,
Here's my scenario: I am deploying code to two servers, and all tasks are run in parallel as expected. However, at a certain stage I need to access an API running at each of those target servers (using axios for that) so that I consume the JSON and do other stuff accordingly.
In order to do this, I need to know which server shipit is running (such as the hostname), so each one consumes its own API (and I can't do shipit.remote('curl localhost:1234')). Is there a way to do this?
Thanks in advance.