Jun 21, 2019
0
Level 8
Error when running envoy task, server [ server_name] is not defined
Hi everybody, I'm trying to use laravel envoy task runner to deploy an app with just a command, however when I execute envoy run deploy I het the following error message in terminal.
deployuser@gabriel-ubuntu-1:/var/www/dtcburger.es$ envoy run deploy
In TaskContainer.php line 193:
Server [web] is not defined.
run [--continue] [--pretend] [--path PATH] [--conf CONF] [--] <task>
deployuser@gabriel-ubuntu-1:/var/www/dtcburger.es$
It can't find my server despite me adding the correct user and IP to @servers array...
This is part of my Envoy.blade.php file:
@servers(['web' => '[email protected]'])
@setup
$on = 'web';
$user = 'deployuser';
$domain = 'gabrielgbtest.com';
$repo = '[email protected]:GabotronES/projectname.git';
@endsetup
@story('deploy')
clone
dependencies
migrations
perms
nginx
ssl
@endstory
@task('pull', ['on' => $on, 'confirm' => true])
git fetch origin master
git reset --hard origin/master
@endtask
Any idea what I'm doing wrong?
Please or to participate in this conversation.