Skip to content

Which is the correct way of compiling a Phoenix app, deps and all? #402

Closed Answered by lawik
gerhard asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting question.

So esbuild is a neat thing. We can set that aside I think as that's a tool transition. And you'll need some kind of way to wrangle that stuff regardless.

Compiling can certainly take a fair bit of time. Unless you use dialyzer for static analysis or have really slow tests the compile step is reasonably the slowest.

Not sure about the value of compiling all deps in parallel as I think the compiler is already quite parallel and I wonder if that might starve other resources. Memory, IO or so.

Top of mind I don't see any reason to build for the dev env. I don't believe my similar workflows require that. I don't see how step 4 requires it.

A mix release would package all …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@gerhard
Comment options

gerhard Dec 11, 2021
Maintainer Author

@lawik
Comment options

lawik Dec 11, 2021
Collaborator

Answer selected by gerhard
Comment options

You must be logged in to vote
3 replies
@gerhard
Comment options

gerhard Dec 11, 2021
Maintainer Author

@nickjj
Comment options

nickjj Dec 11, 2021
Collaborator

@gerhard
Comment options

gerhard Dec 13, 2021
Maintainer Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants