Mar 29, 2021
0
Level 50
Laravel Envoy & Multiple Servers
I have a simple Envoy file as below (all working and displaying the correct output for each server):
@servers(['.se' => 'ee-se', '.co.uk' => 'ee-couk'])
@story('deploy')
pwd
@endstory
@task('pwd')
cd ~ && pwd;
@endtask
I anyone aware of a way to determine the current server a given task is being run upon?
Using my example, if the script is currently deploying on the .se server I'd like to access .se or ee-se variables?
Thanks
Please or to participate in this conversation.