labzero / bootleg_phoenix

Provides Phoenix-specific Bootleg tasks.
MIT License
23 stars 7 forks source link

Set MIX_ENV during Phoenix digest #2

Closed rjanja closed 6 years ago

rjanja commented 6 years ago

Corrects the current behavior of digest task not succeeding due to an assumed dev environment.

The tests didn't catch this because the task's commands include bash tests which return success even if the needed binaries aren't available. Those bash tests were originally used because Bootleg was deploying non-Phoenix applications.

A failure of a necessary Phoenix asset build step should result in an error that bubbles up to the end-user.