pleroma-docker/entrypoint.sh
2018-12-24 23:20:17 +01:00

21 lines
289 B
Bash
Executable File

#!/bin/bash
set -e
set -x
# Generate a config file
ruby /config/parser.rb /config/config.yml > runtime-config.exs
# Recompile if needed
if [[ ! -z "$RECOMPILE" ]]; then
mix deps.get
mix compile
fi
# Migrate db
mix ecto.create
mix ecto.migrate
# Off we go!
exec mix phx.server