Is there a way for me to run npm install and then gulp when deploying a Clojure app to heroku?
2 Answers
You will probably want to use Heroku's Multi-buildpack with the Node.js and Clojure buildpacks. This is documented for Java and Scala.
2 Comments
JoshSGman
Thanks, I just ended up building my own buildpack
codefinger
Cool. While it's great that folks can create their own buildpacks, there is an advantage to using the Heroku supported buildpacks. They are updates regularly with security fixes for the JDK and other components. Heroku can also provide a better level of support.
You can use npm's scripts in your package.json. See https://devcenter.heroku.com/articles/nodejs-support#customizing-the-build-process