Summer Sale! All accounts are 50% off this week.

Robstar's avatar
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

0 likes
0 replies

Please or to participate in this conversation.