我对我的 bitbucket 管道有疑问。 我直接在我的服务器中进行部署。 但是当命令完成后,我在我的服务器中找到了我的文件夹 dist。 我只会文件夹 dist 里面的文件 这是我的代码:
#bitbucket-pipelines.yml
image: node:latest
pipelines:
default:
- step:
name: Build VUE Project
caches:
- node
script:
- yarn install
- yarn run build
artifacts:
- dist/**
- step:
name: Deploy to CPANEL
deployment: production
script:
- pipe: (....something)
variables:
USER: $ftp_user
PASSWORD: $ftp_password
SERVER: $ftp_host
REMOTE_PATH: $ftp_remote_path
所以当管道完成时,我在我的生产服务器中找到了文件夹 dist(里面有我的应用程序) 如何从管道文件中的dist中提取所有文件?有人有建议吗?谢谢:)
答案 0 :(得分:0)
对于每个人都会遇到同样的问题,解决方案是在步骤中添加这一行:
LOCAL_PATH: 'dist'
所以,只会部署目录dist的内容! 有一个美好的编码日:)