This repository has been archived on 2024-06-16. You can view files and clone it, but cannot push or open issues or pull requests.
mebe-2/release.sh
2018-12-02 21:13:20 +02:00

21 lines
331 B
Bash
Executable file

#!/usr/bin/env bash
set -eux
set -o pipefail
CURRENT_DIR=$(pwd)
FRONTEND_PATH='lib/web/frontend'
cd ${FRONTEND_PATH}
yarn install
node_modules/.bin/bsb -make-world
NODE_ENV=production node fuse build
cd ${CURRENT_DIR}
# Force new statics to be picked up
MIX_ENV=prod mix compile --force
MIX_ENV=prod mix release --env=prod