pleroma-docker/entrypoint.sh

23 lines
255 B
Bash
Raw Normal View History

2018-08-20 21:06:34 +00:00
#!/bin/bash
set -e
set -x
if [[ -n "$BUILDTIME" ]]; then
mix local.rebar --force
mix local.hex --force
2018-12-24 22:20:17 +00:00
mix deps.get
mix compile
exit 0
2018-12-24 22:20:17 +00:00
fi
mix compile
2018-12-24 22:20:17 +00:00
# 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