Support Forums

Ionic cap 3 ng 12 deploy

I need advice to debug deploy Netlify App

Hi @poligonosapp Welcome to the Netlify community

I’m thinking…
In your angular.json you have

"build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "www",

However, based on the following in your log

7:57:39 AM:   Error message
7:57:39 AM:   Deploy did not succeed: Deploy directory 'build' does not exist
7:57:39 AM: ​
7:57:39 AM:   Resolved config
7:57:39 AM:   build:
7:57:39 AM:     base: /opt/build/repo
7:57:39 AM:     command: npx ionic build --prod
7:57:39 AM:     commandOrigin: ui
7:57:39 AM:     environment:
7:57:39 AM:       - GH_TOKEN
7:57:39 AM:       - LEAFLET_ACCESS_TOKEN
7:57:39 AM:       - REALM_APP_ID
7:57:39 AM:     publish: /opt/build/repo/build
7:57:39 AM:   functions:
7:57:39 AM:     '*': {}
7:57:39 AM:   functionsDirectory: /opt/build/repo/.netlify/functions

The publish directory is build. You could tell change the output path in the JSON in create a netlify.toml file with

  publish = "www"

in it to publish the directory as per your JSON.

1 Like

Hi, @poligonosapp. I checked a newer deploy of this site and see that the suggestion about appears to have resolved the issue.

If there are other questions or concerns, please let us know.

(P.S. Thanks for that solution, @coelmay. :+1: )

1 Like