Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

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.