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?– Rodrigo Rigotti
I didn’t try to reverse Rodrigo. And no, I just took the file
id_rsa.pub
, put on theauthorized_keys
in the VPS and ready.– Patrick Maciel
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).– Rodrigo Rigotti
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.
– Patrick Maciel