【发布时间】:2020-10-31 10:54:14
【问题描述】:
我正在尝试通过 bitbucket 管道将 wordpress 主题部署到服务器,它工作正常,但没有部署 dist 文件夹。我认为这是因为我的 .gitignore 文件中添加了 dist 文件夹
这是我的 bitbucket-pipelines.yml 文件
- step:
name: 'Deployment to Production'
image: node:10.16.2
deployment: production
trigger: 'manual'
script:
- npm install
- npm test
- yarn
- yarn build:production
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --insecure --user $FTP_USER --passwd $FTP_PASS ftpes://ftp.mydomain.dev/public_html/wp-content/themes/cule --all
我错过了什么吗?我应该从我的 .gitignore 文件中删除 dist 文件夹吗?
这是我的 .gitignore 文件
.gitignore
.cache-loader
npm-debug.log
yarn-error.log
resources/assets/config-local.json
node_modules
dist
【问题讨论】:
标签: bitbucket bitbucket-pipelines