小编Haj*_*jan的帖子

Bitbucket 管道部署忽略使用 ftp 上传的供应商文件夹

我正在尝试使用 bitbucket 管道部署 PHP 项目。有了这个代码:

init: # -- First time init
  - step:
      name: build
      image: php:7.1.1
      caches:
        - composer
      script:
        - apt-get update && apt-get install -y unzip
        - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
        - composer install
        - vendor/bin/phpunit
      artifacts: # defining vendor/ as an artifact
        - vendor/**
  - step:
      image: samueldebruyn/debian-git
      name: deployment
      script:
        - apt-get update
        - apt-get -qq install git-ftp
        - git ftp init -u "$FTP_DEV_USERNAME" -p "$FTP_DEV_PASSWORD" ftp://$FTP_DEV_HOST/$FTP_DEV_FOLDER
Run Code Online (Sandbox Code Playgroud)

但它忽略了供应商文件夹。我假设,工件也会添加此文件夹来部署。

有什么问题或者我可以做得更好吗?

php deployment bitbucket composer-php bitbucket-pipelines

3
推荐指数
1
解决办法
1428
查看次数

如何使用 Bitbucket Pipelines 将 React 项目部署到 ftp?

我正在尝试设置bitbucket-pipelines.yml文件来进行构建,然后部署反应项目。下面是我的代码。

image: node:10.15.1 pipelines: default: # Pipelines that are triggered manually via the Bitbucket GUI - step: name: Build script: - yarn - yarn build - step: name: Deploy script: - apt-get update - apt-get install ncftp - ncftpput -v -u "$FTP_USERNAME" -p "$FTP_PASSWORD" -R $FTP_HOST $FTP_SITE_ROOT_DEV build/* - echo Finished uploading /build files to $FTP_HOST$FTP_SITE_ROOT

我得到的结果是:
+ ncftpput -v -u "$FTP_USERNAME" -p "$FTP_PASSWORD" -R $FTP_HOST $FTP_SITE_ROOT_DEV build/* could not stat build/*: No such file or directory. ncftpput …

deployment bitbucket reactjs bitbucket-pipelines

1
推荐指数
1
解决办法
1629
查看次数