1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/bin/setup

20 lines
367 B
Bash
Executable File

#!/usr/bin/env sh
echo "Removing previous build artifacts"
rm -rf deps _build
echo "Installing dependencies and compiling"
mix local.hex --force
mix deps.get
mix deps.compile
mix compile
# Set up database
echo "Setting up the database"
mix ecto.create
mix ecto.migrate
# Grab JS dependencies from NPM
echo "Installing js dependencies"
npm install --prefix assets