Answer the question
In order to leave comments, you need to log in
How to install bower components on Heroku for Django project?
There is a Django project. I want to install jquery and bootstrap on heroku using bower.
I try like this:
package.json
{
"dependencies": {
"bower": "*"
},
"scripts": {
"postinstall": "bower install"
}
}
{
"name": "app",
"version": "0.0.0",
"authors": [
"Name <[email protected]>"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"static/components",
"test",
"tests"
],
"dependencies": {
"jquery": "~2.1.1",
"bootstrap": "~3.2.0"
}
}
Answer the question
In order to leave comments, you need to log in
Use https://github.com/ddollar/heroku-buildpack-multi
by adding:
https://github.com/heroku/heroku-buildpack-nodejs.git
https://github.com/heroku/heroku-buildpack-python.git
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question