0

I am actually developing a React js application and pushing it to Azure Github (dev.azure). To automate the builds, I created pipelines and to release the build I created a release pipeline. I want to host this application on heroku app server. I used Heroku release tools in azure pipelines and the release is being sent. But in heroku activity it says

"App not compatible with buildpack:" and if i use Node js buildpack, it says package.json is not found.

I understand that its expecting my source code but not the end build folder.

But is there anyway to publish only the build folder and it directly runs on heroku server without having to deploy my code into heroku.

Gss Aditya
  • 123
  • 8

1 Answers1

1

It is said in the heroku document:

Heroku Node.js support will only be applied when the application has a package.json file in the root directory.

I am afraid you cannot push only the build folder into heroku. As it is said in the document a build of the source application will be initiated, when Heroku platform receives the application source. See document here.

And then, the source code for your application, together with the fetched dependencies and output of the build phase such as generated assets or compiled code, as well as the language and framework, are assembled into a slug. The slug will be distributed to a dyno for execution. See here.

Levi Lu-MSFT
  • 27,483
  • 2
  • 31
  • 43