#!/usr/bin/env bash

set -e

echo "Building frontend"
T_ENV=production npx webpack --config ui/webpack.config.js

echo "Building backend"
MIX_ENV=prod mix release

echo "Done, the Elixir release is in _build/prod/"
