pleroma-docker/entrypoint.sh

21 lines
292 B
Bash
Raw Normal View History

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