Mar 23, 2019
0
Level 5
Is it possible to use https access to bitbucket rep with envoy in Laravel 5.7 app?
Hello, Is it possible to use https access to bitbucket rep with envoy in Laravel 5.7 app?
If I run command in console :
git clone https://[email protected]/client/project_name.git
on the target server(ubuntu 18 ubder Digital Ocean) it is cloned ok.
I tried to use http in envoy file with file's structure like:
@setup
$server_login_user= 'deployer_user';
...
# $repo= 'git clone https://[email protected]/client/project_name.git';
$repo= 'git clone https://[email protected]/client/project_name.git';
$branch= '';
@endsetup
@servers(['production' => $server_login_user.'@NNN.NN.NN.NN'])
@task( 'clone', ['on'=>$on] )
git clone {{ $branch }} "{{ $repo }} {{ $release_number }}"
@endtask
But running envoy in console I got error:
$ envoy run Deploy
[email protected]'s password:
[[email protected]]: Cloning into 'dest_directory'...
[[email protected]]: fatal: I don't handle protocol 'git clone https'
[✗] This task did not complete successfully on one of your servers.
Thanks!
Please or to participate in this conversation.