mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
22 lines
368 B
Bash
Executable File
22 lines
368 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"
|
|
cd assets
|
|
yarn install
|
|
cd ..
|