"stdin is not a terminal" when I run Envoy - Laravel 4.2

4

One month ago everything is working well, until I went deploy a project and ...

When you run the command envoy run deploy , using the settings below ...

@servers([
    'mt' => '[email protected]'
])

@task('deploy', ['on' => 'mt'])
    cd /var/www/html/xxx.xxxxxx.xxxx
    git pull origin dev
    composer dump-autoload -o
    php artisan cache:clear
@endtask

I got the following error:

git:(dev) ✗ envoy run deploy
[]: Pseudo-terminal will not be allocated because stdin is not a terminal.
[]: ssh: Could not resolve hostname bash -s: nodename nor servname provided, or not known

I put the contents of the id_rsa.pub file on my server, inside the file authorized_keys , and I can log in normally in the traditional way: ssh [email protected] - (without the password).

So ... what am I doing wrong? What has changed in Envoy?

If you need more information, let me know before you deny it.

Thank you in advance.

    
asked by anonymous 26.02.2015 / 01:41

1 answer

2

I found the solution, but so far I'm not believing that to be it.

This is my code.

@servers([
    'mt' => '[email protected]'
])

That's the solution:

@servers(['mt' => '[email protected]'])

The function @servers only accepts inline instructions.

Thanks for your time guys !. Abs.

    
01.03.2015 / 19:20