Giter Club home page Giter Club logo

Comments (10)

HashNuke avatar HashNuke commented on July 21, 2024

@chrismccord won't that mean we would need node.js installed too? (https://github.com/ddollar/heroku-buildpack-multi).

\cc: @ericmj

from heroku-buildpack-elixir.

rwdaigle avatar rwdaigle commented on July 21, 2024

Just an FYI that Heroku Buildpacks have changed a bit. You no longer need the multi-buildpack to specify a build pipeline. Instead, specify each buildpack individually with the following CLI:

$ heroku buildpacks:set https://github.com/HashNuke/heroku-buildpack-elixir.git
$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs

Regarding brunch asset compilation, here's how they do it in the official Ruby/Rails buildpack.

from heroku-buildpack-elixir.

ericmj avatar ericmj commented on July 21, 2024

Should we automatically run a post_compile / post_compile.sh file in your root directory or should we take the file from a post_compile option in elixir_buildpack.config?

/cc @josevalim

from heroku-buildpack-elixir.

josevalim avatar josevalim commented on July 21, 2024

I thought the plan was to not support hooks. What changed? :)

from heroku-buildpack-elixir.

HashNuke avatar HashNuke commented on July 21, 2024

At work, I was working with a non-Heroku deployed app where the compilers option in mix.exs was used to add a :frontend compiler so that everytime the app is started or compiled, the frontend too gets compiled.

Curious how a post compile hook will help on Heroku since we depend on mutl-buildpack for asset compilation.

from heroku-buildpack-elixir.

ericmj avatar ericmj commented on July 21, 2024

At work, I was working with a non-Heroku deployed app where the compilers option in mix.exs was used to add a :frontend compiler so that everytime the app is started or compiled, the frontend too gets compiled.

The problem is that you might not want to compile assets on every compilation or app start so a Heroku specific compilation step is very useful.

Curious how a post compile hook will help on Heroku since we depend on mutl-buildpack for asset compilation.

Not sure what you are asking here, as long as the node buildpack runs before the elixir buildpack it will work.

from heroku-buildpack-elixir.

HashNuke avatar HashNuke commented on July 21, 2024

@ericmj I meant to ask what the use case was for the post-compile hook. I remember there was this discussion earlier in another issue and that that issue was closed.

Sorry read your comment in bed and forgot to reply the other day.

from heroku-buildpack-elixir.

ericmj avatar ericmj commented on July 21, 2024

phoenixframework/phoenix#835

from heroku-buildpack-elixir.

HashNuke avatar HashNuke commented on July 21, 2024

@ericmj 👍 thanks for linking. Got it now ~!

from heroku-buildpack-elixir.

HashNuke avatar HashNuke commented on July 21, 2024

Yaaay ~!

from heroku-buildpack-elixir.

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.