Сборка Heroku Невозможно найти какие-либо приложения в `.angular-cli.json` - PullRequest
0 голосов
/ 18 октября 2019

При развертывании моего приложения angular на платформе heroku я получаю этот журнал ошибок.

Я перехожу по этой ссылке для настройки angular-cli.json и некоторых других вещей.

https://itnext.io/how-to-deploy-angular-application-to-heroku-1d56e09c5147


    -----> Build
       Running heroku-postbuild
       > angular-5-formularis@1.0.0 heroku-postbuild /tmp/build_254071f3c66ba5811ab2e3b07c9696c2
       > ng build --prod

Unable to find any apps in `.angular-cli.json`.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular-5-formularis@1.`0.0 heroku-postbuild: `ng build --prod`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the angular-5-formularis@1.0.0 heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/npmcache.ekujC/_logs/2019-10-18T18_19_38_109Z-debug.log
-----> Build failed

1 Ответ

0 голосов
/ 20 октября 2019

Я уже исправил это, просто перемещая angular-cli.json в корень проекта.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...