Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to specify base path for a buildpack? #33
I have a Java application which contains a "Node" (a yeoman generated web app actually) in 'src/main/webapp' dir. When pushed, heroku detects it only as a Java app and runs the corresponding buildpack. I'm trying to use this heroku-buildpack-multi but I can't find a way to specify the base directory for the web app.
it expects a package.json file, for the Node buildpack, in root not in src/main/webbapp hence it fails.
I had a similar problem. I have a Rails app, but the frontend is a static app that needs to get built with node.
I forked the nodejs buildpack (you can find my fork here) and did some small tweaks. It's being used in production.
In the root of my project I have a
export NODE_WORKING_DIRECTORY='/app' export NODE_BUILD_COMMAND='npm run build'
Here's what my changes do:
I'm not 100% certain, but think that if you set the
Hopefully it works out. Good luck! Please let me know if you end up using my buildpack