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
I have been followng https://hexdocs.pm/phoenix/heroku.html. 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
│ ├── en
│ └── errors.pot
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?
(1) I tried deleting this buildpack: https://github.com/gjaldon/heroku-buildpack-phoenix-static.git – 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.