pleroma-docker/entrypoint.sh

21 lines
292 B
Bash
Raw Normal View History

2018-08-20 17:06:34 -04:00
#!/bin/bash
set -e
set -x
2018-12-24 17:20:17 -05:00
# Generate a config file
2018-12-27 19:44:33 -05:00
ruby /conf/parser.rb /conf/config.yml > config/runtime-config.exs
2018-12-24 17:20:17 -05:00
# Recompile if needed
if [[ ! -z "$RECOMPILE" ]]; then
mix deps.get
mix compile
fi
# Migrate db
2018-08-20 17:06:34 -04:00
mix ecto.create
mix ecto.migrate
2018-12-24 17:20:17 -05:00
# Off we go!
2018-08-20 17:06:34 -04:00
exec mix phx.server