fix: force recompile in Docker build to prevent stale BEAM files (#119)
Incremental compilation can miss schema field removals in dependent modules, causing undefined_column errors in production. Reviewed-on: graham/towerops-web#119
This commit is contained in:
parent
7d24e56bd9
commit
5d87459ecc
1 changed files with 2 additions and 2 deletions
|
|
@ -80,9 +80,9 @@ RUN cd c_src && make
|
|||
|
||||
COPY lib lib
|
||||
|
||||
# Compile the release
|
||||
# Compile the release (--force prevents stale BEAM files from schema changes)
|
||||
RUN --mount=type=cache,target=/root/.mix \
|
||||
mix compile
|
||||
mix compile --force
|
||||
|
||||
COPY assets assets
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue