I have one more problem now trying to configure a (heroku unmbrella) app as the error below shows. I use the app mostly to serve json, but there are a few barebones html pages served which use assets in static, as indicated below. However, Heroku seems to want such assets in ./assets along with various other files such as a package.json.
I have been followng Deploying on Heroku — Phoenix v1.8.8. It is possible that I set up this project with --no-brunch --no-html, as it was originally serving only json. The app works fine locally css and js files in priv/static as described below. I’m not using brunch and don’t know what it is.
$ tree -L 2 apps/koko_web/priv
apps/koko_web/priv
├── gettext
│ ├── en
│ └── errors.pot
└── static
├── css
└── js
As the error message shows, Heroku is looking for an assets folder.
remote: -----> Building dependencies
remote: Installing and caching node modules
remote: /app/tmp/buildpacks/abc...0059be/lib/build.sh:
line 105: cd: /tmp/build_5a13/./assets: No such file or directory
remote: ! Push rejected, failed to compile Phoenix app.
What to do?
Notes added
(1) I tried deleting this buildpack: GitHub - gjaldon/heroku-buildpack-phoenix-static: A Heroku buildpack for building Phoenix's static assets · GitHub – Still got the ./assets: No such file or directory error.
(2) Also tried creating a dummy ./assets folder .. no dice, needs a package.json and other things. Couldn’t guess the structure needed.


















