|
|
@@ -7,14 +7,16 @@ MIX_ENV=${MIX_ENV-prod}
|
|
|
|
|
|
export MIX_ENV=$MIX_ENV
|
|
|
|
|
|
+# Clean project and get dependencies
|
|
|
+mix do local.hex --force, \
|
|
|
+ clean --only $MIX_ENV, \
|
|
|
+ deps.get --only $MIX_ENV
|
|
|
+
|
|
|
# Build static assets
|
|
|
npm --prefix ./assets ci --progress=false --no-audit --loglevel=error
|
|
|
npm run --prefix ./assets deploy
|
|
|
|
|
|
-# Run an explicit clean beforehand
|
|
|
-mix do local.hex --force, \
|
|
|
- clean --only $MIX_ENV, \
|
|
|
- deps.get --only $MIX_ENV, \
|
|
|
- compile --force, \
|
|
|
+# Run project compilation
|
|
|
+mix do compile --force, \
|
|
|
release --overwrite, \
|
|
|
phx.digest
|