Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何使用bitbucket管道更新网站服务器上的laravel供应商文件夹_Php_Git_Laravel_Bitbucket_Bitbucket Pipelines - Fatal编程技术网

Php 如何使用bitbucket管道更新网站服务器上的laravel供应商文件夹

Php 如何使用bitbucket管道更新网站服务器上的laravel供应商文件夹,php,git,laravel,bitbucket,bitbucket-pipelines,Php,Git,Laravel,Bitbucket,Bitbucket Pipelines,这是一个my bitbucket-pipelines.yml和Laravel中的项目 我有这个但不工作,请帮忙,谢谢:) “不工作”是什么意思?请阅读。我没有看到任何会导致vendor/被推到这里的东西,除非我误解了gitftp的作用。如果vendor/未被跟踪,它将不会被推送,因为它不存在于任何提交中。vendor文件夹未在网站服务器上更新您上面显示的内容的哪一部分应该将vendor/文件夹放在您的服务器上?我知道这未被跟踪,但如何处理服务器上没有的vendor文件夹 image: php:7

这是一个my bitbucket-pipelines.yml和Laravel中的项目 我有这个但不工作,请帮忙,谢谢:)


“不工作”是什么意思?请阅读。我没有看到任何会导致
vendor/
被推到这里的东西,除非我误解了
gitftp
的作用。如果
vendor/
未被跟踪,它将不会被推送,因为它不存在于任何提交中。vendor文件夹未在网站服务器上更新您上面显示的内容的哪一部分应该将
vendor/
文件夹放在您的服务器上?我知道这未被跟踪,但如何处理服务器上没有的vendor文件夹
image: php:7.2

pipelines:
    branches:
      dev:
        - step:
            caches:
              - composer
            script: # Modify the commands below to build repository.
              - apt-get update
              - apt-get install -y unzip
              - apt-get -qq install git
              - apt-get -qq install git-ftp
              - apt-get update
              - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
              - composer install
              - git status -uno --porcelain
              - git ftp push --user user12 --passwd abcd1234 ftp://ftp.site.com/dev.site.com/