从位存储桶到Heroku自动部署角度应用程序时出错

时间:2019-12-06 11:20:50

标签: heroku bitbucket angular7

当我们推送到master分支时,我试图从bitbucket自动将angular应用程序部署到heroku.Creates构建正确,但是在部署它会引发错误。 这是我的.yml文件

image: node:10.15.3

pipelines:
  default:
    - step:
        caches:
          - node
        script: # Modify the commands below to build your repository.
          - npm install
          - npm test
  branches:
    master:
      - step:
          name: Build app
          script:
            - npm install
            - npm install -g @angular/cli
            - ng build --prod --build-optimizer --progress=false
          artifacts: 
             - file-systme.tgz
      - step:
         name: Deploy to production
         deployment: production
         script:
           - pipe: atlassian/heroku-deploy:1.1.0
             variables:
               HEROKU_API_KEY: '**'
               HEROKU_APP_NAME: 'xyz'
               ZIP_FILE: 'file-systme.tgz'

请帮助 编辑: FileNotFoundError:[错误2]没有这样的文件或目录:file-systme.tgz

0 个答案:

没有答案