Я пытаюсь развернуть приложение Angular 8 в Heroku, но оно не удается в процессе развертывания.
После исследования inte rnet я обнаружил, что package.json
необходимо находиться в папке root проекта, и это так.
Это сообщение об ошибке я получаю каждый раз, когда пытаюсь развернуть.
-----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/nodejs.tgz
! ERROR: Application not supported by 'heroku/nodejs' buildpack
!
! The 'heroku/nodejs' buildpack is set on this application, but was
! unable to detect a Node.js codebase.
!
! A Node.js app on Heroku requires a 'package.json' at the root of
! the directory structure.
!
! If you are trying to deploy a Node.js application, ensure that this
! file is present at the top level directory. This directory has the
! following files:
!
! assets/
! favicon.ico
! index-tst.html
! main-es2015.js
! main-es2015.js.map
! main-es5.js
! main-es5.js.map
! polyfills-es2015.js
! polyfills-es2015.js.map
! polyfills-es5.js
! polyfills-es5.js.map
! runtime-es2015.js
! runtime-es2015.js.map
! runtime-es5.js
! runtime-es5.js.map
! styles-es2015.js
! styles-es2015.js.map
! styles-es5.js
! styles-es5.js.map
! vendor-es2015.js
! vendor-es2015.js.map
! vendor-es5.js
! vendor-es5.js.map
!
! If you are trying to deploy an application written in another
! language, you need to change the list of buildpacks set on your
! Heroku app using the 'heroku buildpacks' command.
Что я делаю не так?
РЕДАКТИРОВАТЬ:
Настройка конвейера:
image: node:10.15.3
pipelines:
branches:
master:
- step:
name: 'Build app'
caches:
- node
script:
- npm install --quiet
- npm run build-tst --progress=false
artifacts:
- dist/pa-bo/**
- step:
name: 'Create zip'
script:
- tar czfv application.tgz dist/pa-bo
artifacts:
- application.tgz
- step:
name: 'Deploy Backoffice to Heroku TST environment'
deployment: tst
script:
- pipe: atlassian/heroku-deploy:0.1.1
variables:
HEROKU_API_KEY: $HEROKU_API_KEY
HEROKU_APP_NAME: $HEROKU_APP_NAME
ZIP_FILE: "application.tgz"
WAIT: 'true' # wait for build completion and exit the pipe