Giter Site home page Giter Site logo

Comments (5)

nickgartmann avatar nickgartmann commented on May 25, 2024

Was missing heroku buildpacks:add --index 1 https://github.com/HashNuke/heroku-buildpack-elixir

from heroku-buildpack-phoenix-static.

gjaldon avatar gjaldon commented on May 25, 2024

👍

from heroku-buildpack-phoenix-static.

danielberkompas avatar danielberkompas commented on May 25, 2024

Does bower need to be in your npm dependencies for this to work? I'm still seeing the same issue:

 npm WARN package.json @ No README data�[K
remote:        npm WARN package.json @ No license field.�[K
remote:        Installing and caching bower components�[K
remote: /tmp/buildpack20151029-162-1vgk1yq/lib/build.sh: line 70: bower: command not found�[K
remote: cp: cannot stat ‘bower_components’: No such file or directory�[K
remote:        Running default compile�[K
remote:        29 Oct 23:43:51 - error: { [Error: Component must have "/tmp/build_f750fe919c22bac2929fc26ec9db2670/bower_components/react/bower.json"] code: 'NO_BOWER_JSON' }�[K
remote:        29 Oct 23:43:54 - info: compiled 5 files into 2 files, copied 3 in 2774ms�[K
remote:        Check your digested files at "priv/static"�[K

from heroku-buildpack-phoenix-static.

gjaldon avatar gjaldon commented on May 25, 2024

@danielberkompas how this works is it checks if a bower.json file exists in your repo's root directory. If there is a bower.json, it will attempt to do bower install. bower install will only work if it was installed via npm.

So yes, you will need to add bower as one of of your npm dependencies. I could probably have it auto-install bower if it detects a bower.json file. But it's also nice to explicitly set it as a dep in npm. What do you think?

from heroku-buildpack-phoenix-static.

danielberkompas avatar danielberkompas commented on May 25, 2024

It makes sense. Added it to my devDependencies, and the buildpack works fine.

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.