heroku-buildpack-phoenix-static
heroku-buildpack-phoenix-static copied to clipboard
getting No such file or directory error
assets build failed during heroku deployment,any idea on how to fix this?
remote: -----> Creating .profile.d with env vars
remote: -----> Writing export for multi-buildpack support
remote: -----> Phoenix app detected
remote:
remote: -----> Loading configuration and environment
remote: Loading config...
remote: Detecting assets directory
remote: WARNING: no package.json detected in root nor custom directory
remote: * assuming phoenix 1.3.x and later, please check config file
remote: Will use phoenix configuration:
remote: * assets path assets
remote: * mix tasks namespace phx
remote: Will use the following versions:
remote: * Node 5.3.0
remote: Will export the following config vars:
remote: BUILDPACK_URL
remote: DATABASE_URL
remote: MIX_ENV
remote: POOL_SIZE
remote: SECRET_KEY_BASE
remote: * MIX_ENV=prod
remote:
remote: -----> Installing binaries
remote: Downloading node 5.3.0...
remote: Installing Node 5.3.0...
remote: Using default npm version
remote:
remote: -----> Building dependencies
remote: Installing and caching node modules
remote: /app/tmp/buildpacks/abc8fb9e8be131ec2574c4ba9e31b81540d97b3bbce47d96e05959c4f81404ac71605dd35ebbcf7a1abe958c346d8ee266ff035de9254424eb54e8b9480059be/lib/build.sh: line 105: cd: /tmp/build_aba384b288d92ff204dc221530cb9e9d/./assets: No such file or directory
remote: ! Push rejected, failed to compile Phoenix app.
remote:
remote: ! Push failed
remote: Verifying deploy...
I was able to fix this using the assets_path
option in phoenix_static_buildpack.config
.
@davishmcclurg Can you paste in the relevant content in your phoenix-static-buildpack.config
file? I'm using an umbrella app and I guess that's why it's not working properly.
To fix: I set my relative Phoenix path and voila. :slightly_smiling_face:
phoenix_relative_path=/apps/my_app_web/
This was happening to me because I removed
"dependencies": {
"phoenix": "file:deps/phoenix"
}
from my root package.json
.
Can i use this for GCP keyfile.json? If can how do i do it?