pleroma-docker/entrypoint.sh

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