Add build script - this branch is quickly becoming cringe

This commit is contained in:
Simponic 2023-01-18 21:08:56 -07:00
parent af0207d8ce
commit 03c71dd00f
Signed by untrusted user who does not match committer: simponic
GPG Key ID: 52B3774857EB24B1

11
build.sh Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Initial setup
mix deps.get --only prod
MIX_ENV=prod mix compile
# Remove the existing release directory and build the release
rm -rf "_build"
MIX_ENV=prod mix release
# for auto DB migration upon deploy
MIX_ENV=prod mix ecto.migrate