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

Asked

Viewed 82 times

4

A month ago everything is working fine, until I went to deploy a project and...

When you execute 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 file id_rsa.pub of my mac on the 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 the issue.

Thanks in advance.

  • Do you need a PEM file to connect to the host? Have you tried reverting the version of laravel/envoy for the version a month ago to see if it resolves?

  • I didn’t try to reverse Rodrigo. And no, I just took the file id_rsa.pub, put on the authorized_keys in the VPS and ready.

  • Try to reverse the version first to see if it resolves, since it is easy to do so (just change the version on composer.json and update dependencies).

  • I’m gonna have to go back and forth one by one because I can’t remember the last time I updated the project. But anyway, I’ll try tonight and let you know as soon as possible.

1 answer

2


I’ve found the solution, but so far I’m not buying it.

This is my code.

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

That is the solution:

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

The function @servers accepts only instructions inline.

Thanks for your time, guys. Abs.

  • Really that was it?

  • 1

    Seriously, I couldn’t believe it. I’ve been stuck on this for a week and a half and that’s it. Unbelievable.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.