From 03c71dd00fc9bdcef070e7ed73cb1e89d0ee68b0 Mon Sep 17 00:00:00 2001 From: Simponic Date: Wed, 18 Jan 2023 21:08:56 -0700 Subject: [PATCH] Add build script - this branch is quickly becoming cringe --- build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..a2d358b --- /dev/null +++ b/build.sh @@ -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