Stevan Tosic
Stevan Tosic

Reputation: 7209

Define sync directory on bitbucket pipeline

I am using folder structure for local vagrant development,

-bin
-htdocs
-resources
-vagrant

those folders are on git
but I want to clone only htdocs folder content on server using git ftp push

How to define clone directory on bitbucket pipelines?

Upvotes: 3

Views: 293

Answers (1)

Stevan Tosic
Stevan Tosic

Reputation: 7209

By the following documentation on
https://www.mankier.com/1/git-ftp#Defaults

There is need to set syncroot in git config

Before executing of command git ftp <init|push> git should be configured like on this example

$ git config git-ftp.user john
$ git config git-ftp.url ftp.example.com
$ git config git-ftp.password secr3t
$ git config git-ftp.syncroot path/dir

or use one line command

$ git config git-ftp.<(url|user|password|syncroot|cacert)> <value>

Upvotes: 4

Related Questions