mirror of
https://github.com/ClaperCo/Claper.git
synced 2025-12-16 11:57:58 +01:00
16 lines
324 B
Bash
16 lines
324 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# exit on error
|
||
|
|
set -o errexit
|
||
|
|
|
||
|
|
# Initial setup
|
||
|
|
mix deps.get --only prod
|
||
|
|
MIX_ENV=prod mix compile
|
||
|
|
|
||
|
|
# Compile assets
|
||
|
|
mix assets.deploy
|
||
|
|
|
||
|
|
# Build the release and overwrite the existing release directory
|
||
|
|
MIX_ENV=prod mix release --overwrite
|
||
|
|
|
||
|
|
# for auto DB migration upon deploy
|
||
|
|
MIX_ENV=prod mix ecto.migrate
|