0

I'm making a SSH Task with Envoy and Laravel, the problem is that when I make something like

@task('truncate', ['on' => 'remote'])
    echo 'Truncating table...'
    mysql --help
@endtask

It outputs

mysql: command not found

And yes... I have mysql installed on remote server. If I manually ssh into it and write mysql it works as expected.

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
Alan
  • 2,559
  • 4
  • 32
  • 53

1 Answers1

0

I found the solution. In remote server I'm using Zsh and Envoy is using Bash, thats why mysql isnt been loaded with PATH.

Alan
  • 2,559
  • 4
  • 32
  • 53