pleroma-docker/entrypoint.sh

21 lines
289 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
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
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