Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting No such file or directory error #63

Open
febilva opened this issue May 8, 2017 · 5 comments
Open

getting No such file or directory error #63

febilva opened this issue May 8, 2017 · 5 comments

Comments

@febilva
Copy link

febilva commented May 8, 2017

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...
@davishmcclurg
Copy link

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

@sergiotapia
Copy link

@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
Copy link

sergiotapia commented Jul 13, 2017

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

phoenix_relative_path=/apps/my_app_web/

@CygnusRoboticus
Copy link

This was happening to me because I removed

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

from my root package.json.

@AzimLord
Copy link

AzimLord commented Jun 23, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants