Giter Site home page Giter Site logo

Comments (5)

yellow5 avatar yellow5 commented on May 25, 2024 16

Update

Adding this to the config file allowed a successful deploy:

# Clean out cache contents from previous deploys
clean_cache=true

After that, I set the value back to false and successfully deployed again.

There must be something about the previous cache that was colliding with the previous node version used. In my case, I was using the default of the buildback: v6.9.2

Hope that helps...

from heroku-buildpack-phoenix-static.

jesseshieh avatar jesseshieh commented on May 25, 2024 10

On gigalixir, we get customers asking about this issue almost every single day. I assume it is also happening frequently on Heroku. In fact, it's probably the single biggest issue we get regarding this buildpack. I wonder if there is a way to detect this scenario and fix it automatically. @gjaldon would you be willing to accept a pull request that fixes detects and auto-fixes this issue?

from heroku-buildpack-phoenix-static.

gjaldon avatar gjaldon commented on May 25, 2024 2

@BestLuke it looks like this issue was caused by phoenix and phoenix_html inside node_modules no longer being directories. cp can't overwrite directories with files. Changing the node version might have caused this or maybe updating the deps.

The only fix is to use clean_cache as @yellow5 pointed out.

from heroku-buildpack-phoenix-static.

gjaldon avatar gjaldon commented on May 25, 2024 2

@jesseshieh I'd be happy to accept a PR to auto-detect and fix the issue.

from heroku-buildpack-phoenix-static.

yellow5 avatar yellow5 commented on May 25, 2024

I am receiving similar errors when I try deploying an app to heroku-18 stack:

cp: cannot overwrite directory '/app/tmp/cache/node_modules/phoenix' with non-directory
cp: cannot overwrite directory '/app/tmp/cache/node_modules/phoenix_html' with non-directory

My config also sets a recent node version:

# NodeJS version
node_version=10.15.1

# NPM version
npm_version=6.4.1

# Phoenix assets path
assets_path=assets

# Phoenix mix namespace
phoenix_ex=phx

@BestLuke were you able to find a work around?

from heroku-buildpack-phoenix-static.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.