Comments (5)
Was missing heroku buildpacks:add --index 1 https://github.com/HashNuke/heroku-buildpack-elixir
from heroku-buildpack-phoenix-static.
👍
from heroku-buildpack-phoenix-static.
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.
@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.
It makes sense. Added it to my devDependencies, and the buildpack works fine.
from heroku-buildpack-phoenix-static.
Related Issues (20)
- Build is failing with NPM_TOKEN issue HOT 2
- My build just failed on phoenix.digest vs phx.digest HOT 1
- The build is failing if there is a .yarnrc with --cwd at the root HOT 1
- Support the new Cloud Native Buildpack (CNB) format.
- Files are compiled on startup
- New versions of node break the build HOT 17
- Remove default node_version
- Support for Yarn 2?
- Update heroku commands
- ngrok Error: certificate has expired HOT 3
- question about deployment to heroku with waypoint
- nodebin.herokai.com not resolving HOT 1
- Yarn error: "Command "deploy" not found." HOT 6
- Setup test suite and CI
- Heroku Build Fails HOT 2
- heroku build fails when node patch not specified HOT 4
- Improve error message below Phoenix 1.4?
- Is it possible to skip audit when building? HOT 3
- Is it possible to cache digested Phoenix output? HOT 4
- Installs an ancient version of yarn by default HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-phoenix-static.