Webpack Bitbucket管道网页包->;FTP。生成后没有要上载到服务器的文件。人工制品不';行不通
我正在通过将提交推送到生产部门,通过bitbucket管道构建我的网页包:Webpack Bitbucket管道网页包->;FTP。生成后没有要上载到服务器的文件。人工制品不';行不通,webpack,continuous-integration,bitbucket,bitbucket-pipelines,git-ftp,Webpack,Continuous Integration,Bitbucket,Bitbucket Pipelines,Git Ftp,我正在通过将提交推送到生产部门,通过bitbucket管道构建我的网页包: pipelines: default: - step: name: Build and test JS. image: node:8.9.3 script: - npm install - npm test - npm run-script build - step: name:
pipelines:
default:
- step:
name: Build and test JS.
image: node:8.9.3
script:
- npm install
- npm test
- npm run-script build
- step:
name: Build and test PHP.
image: php:7-fpm
script:
- echo "Here will be the Composer build and PHPUnit tests."
branches:
production:
- step:
name: Build and test JS.
image: node:8.9.3
script:
- npm install
- npm test
- npm run-script build
artifacts:
- dist/**
- step:
name: Build and test PHP.
image: php:7-fpm
script:
- echo "Here will be the Composer build and PHPUnit tests."
artifacts:
- dist/**
- step:
name: Deploy to FTP.
image: samueldebruyn/debian-git
script:
- apt-get update
- apt-get -qq install git-ftp
- ls public_html
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://$FTP_HOST
我看到webpack构建很好,但文件不会进入下一步。在产品构建之后,我应该输出public_html/js和public_html/css以及index.html文件,这些文件应该在下一步即git ftp中可用。在“ls public_html”命令之后,该目录中没有此类文件。我还使用.gitignore和.git ftp ignore(我允许有我的js、css、index.html文件)
发生了什么事,我该如何解决?请帮忙
更新:在npm构建后列出public_html后,我可以看到构建
文件夹!因此,唯一的问题是将它们“发送”到下一步
UPDATE2:我认为问题在于ftpgit没有将工件发送到
服务器,即使我使用.git ftp include。最后一个“ls public_html”显示所有构建文件
你们知道吗?我在pipelines上的“dist/**”是错误的,因为我在网页中构建应用程序到“public_html”,所以。。。。你有它现在的工作,如果有,什么是解决方案?请添加解决方案,我仍然在弄清楚