Giter Site home page Giter Site logo

Comments (10)

gjaldon avatar gjaldon commented on May 23, 2024 1

@aerosol not sure why that directory is not empty. The build directory is supposed to be cleared out in between deploys.

Anyway, just pushed a fix for this. Could you try out latest master?

from heroku-buildpack-phoenix-static.

aerosol avatar aerosol commented on May 23, 2024 1

In case anyone else runs into this, I've removed heroku-buildpack-nodejs and configured heroku-buildpack-phoenix-static to use the recommended npm/node versions.

from heroku-buildpack-phoenix-static.

deepflame avatar deepflame commented on May 23, 2024

👍

especially useful for upgrading to Phoenix 1.1 where we have to use Node > 5 and NPM 3

from heroku-buildpack-phoenix-static.

aerosol avatar aerosol commented on May 23, 2024

I suppose that could help me, I'm suddenly getting:

remote: -----> Installing binaries
remote:        Using cached node 0.12.4...
remote:        Installing node 0.12.4...
remote: mv: cannot move ‘/tmp/node-v0.12.4-linux-x64/bin’ to ‘/tmp/build_31b49ff677dbcc06cea25f1bdc6d466c/.heroku/node/bin’: Directory not empty
remote: mv: cannot move ‘/tmp/node-v0.12.4-linux-x64/include’ to ‘/tmp/build_31b49ff677dbcc06cea25f1bdc6d466c/.heroku/node/include’: Directory not empty
remote: mv: cannot move ‘/tmp/node-v0.12.4-linux-x64/lib’ to ‘/tmp/build_31b49ff677dbcc06cea25f1bdc6d466c/.heroku/node/lib’: Directory not empty
remote: mv: cannot move ‘/tmp/node-v0.12.4-linux-x64/share’ to ‘/tmp/build_31b49ff677dbcc06cea25f1bdc6d466c/.heroku/node/share’: Directory not empty
remote:  !     Push rejected, failed to compile Phoenix app.
remote:
remote:  !     Push failed

from heroku-buildpack-phoenix-static.

aerosol avatar aerosol commented on May 23, 2024

Pretty sure this is related to f45d8ce -- My last successful deploy was 6 days ago

from heroku-buildpack-phoenix-static.

aerosol avatar aerosol commented on May 23, 2024

@gjaldon Yes that helped.

FWIW, the buildpacks I'm using:

1. https://github.com/HashNuke/heroku-buildpack-elixir.git
2. https://github.com/heroku/heroku-buildpack-nodejs
3. https://github.com/gjaldon/heroku-buildpack-phoenix-static.git

from heroku-buildpack-phoenix-static.

aerosol avatar aerosol commented on May 23, 2024

Hm actually the static assets haven't been built, investigating.

from heroku-buildpack-phoenix-static.

gjaldon avatar gjaldon commented on May 23, 2024

@aerosol you're earlier error was also related to using heroku-buildpack-nodejs. We now raise an error when heroku-buildpack-nodejs is used(can only be detected though when this buildpack is run after the nodejs one). I also added a small FAQ section to clarify that nodejs buildpack should not be used along with this buildpack.

from heroku-buildpack-phoenix-static.

gjaldon avatar gjaldon commented on May 23, 2024

@deepflame latest commits will remove the older Node version if you specify a different version of Node in your latest deploy. Will work on clearing the cache based on an option flag in the phoenix_static_buildpack.config file.

from heroku-buildpack-phoenix-static.

gjaldon avatar gjaldon commented on May 23, 2024

This feature of invalidating cache is now in master. You can enable it by setting clean_cache=true in the phoenix_buildpack_static.config file.

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.