heroku-buildpack-phoenix-static icon indicating copy to clipboard operation
heroku-buildpack-phoenix-static copied to clipboard

getting No such file or directory error

Open febilva opened this issue 7 years ago • 5 comments

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...

febilva avatar May 08 '17 13:05 febilva

I was able to fix this using the assets_path option in phoenix_static_buildpack.config.

davishmcclurg avatar Jun 04 '17 20:06 davishmcclurg

@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.

sergiotapia avatar Jul 13 '17 17:07 sergiotapia

To fix: I set my relative Phoenix path and voila. :slightly_smiling_face:

phoenix_relative_path=/apps/my_app_web/

sergiotapia avatar Jul 13 '17 17:07 sergiotapia

This was happening to me because I removed

"dependencies": {
  "phoenix": "file:deps/phoenix"
}

from my root package.json.

CygnusRoboticus avatar Jan 08 '18 22:01 CygnusRoboticus

Can i use this for GCP keyfile.json? If can how do i do it?

AzimLord avatar Jun 23 '18 16:06 AzimLord