【发布时间】:2019-02-20 17:21:27
【问题描述】:
我正在尝试设置 bitbucket-pipelines.yml 文件来进行构建,然后部署 react 项目。下面是我的代码。
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 build/*: no valid files were specified.
它说没有构建文件或目录。但纱线构建实际上是构建文件夹创建:react-scripts build
【问题讨论】:
标签: reactjs deployment bitbucket bitbucket-pipelines